Entity.UniqueId()extension for that. The id is created from the two Entity struct fields: Index & Version, and is guaranteed to be unique as long as the program runs.
DynamicBufferdoesn’t come with a Contains helper function, and adding one can be cumbersome since there are a few things to consider for Burst support, so DOTSNET comes with one to make life easier.
IBufferElementDatastructs so that
DynamicBuffer.Containsdoesn’t default to using Reflection for
NativeMultiMap.TryIterate(key, out value, ref iterator)
NativeMultiMapis cumbersome because we need to call both
Sendis only called once.