Unity Engine documentation Script Reference Unity.Entities EntityGuid This component is attached to converted Entities and is guaranteed to be unique within a World. It can be used to map back to the authoring GameObject from which it was converted. Note that an EntityGuid does not have enough information to be persistent across sessions.
Read time 1 minute
Last updated a day ago Definition
public struct EntityGuid : IComponentData, IQueryTypeParameter, IEquatable<EntityGuid>, IComparable<EntityGuid>
Static Fields
Value Description Null Static value that represents an invalid EntityGuid.
Constructors
Properties
Property Description NamespaceAndSerial A unique number combining the FullNamespaceId and Serial into a ulong. OriginatingEntityId Session-unique ID for originating object (typically the authoring GameObject's EntityId). OriginatingSubEntityId Secondary session-unique ID for the originating object. This is typically the authoring Component's EntityId. Serial A unique number used to differentiate Entities associated with the same originating object and namespace.
Methods
Method Description CompareTo Compares an EntityGuid against a given one to find their sort order. Equals Checks if two objects are EntityGuid instances and if they are equal. GetHashCode Computes a hashcode to support hash-based collections. ToString Converts this EntityGuid to a standard C# string representation.
Operators
Operator Description operator == Checks if two EntityGuid instances are equal. operator != Checks if two EntityGuid instances aren't equal.