Documentation

Unity Engine


Unity Engine


EntityGuid

Initializes a new instance of the EntityGuid.
Read time 1 minuteLast updated 2 days ago

Definition

  • Type: Constructor
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

EntityGuid(int, int, uint, uint)

Initializes a new instance of the EntityGuid.
Warning
Removed. EntityGuid(int originatingId, int originatingSubId, uint namespaceId, uint serial) is obsolete please use EntityGuid(EntityId originatingId, EntityId originatingSubId, uint namespaceId, uint serial) instead.
public EntityGuid(int originatingId, int originatingSubId, uint namespaceId, uint serial)

Parameters

originatingId

Session-unique ID for the originating object. This is typically the authoring GameObject's InstanceID.

originatingSubId

Secondary session-unique ID for the originating object. This is typically the authoring Component's InstanceID.

namespaceId

A unique number to identify the namespace

serial

A unique number used to differentiate Entities associated with the same originating object and namespace

EntityGuid(EntityId, EntityId, uint, uint)

Initializes a new instance of the EntityGuid.
public EntityGuid(EntityId originatingId, EntityId originatingSubId, uint namespaceId, uint serial)

Parameters

originatingId

EntityId
Session-unique ID for the originating object. This is typically the authoring GameObject's EntityId.

originatingSubId

EntityId
Secondary session-unique ID for the originating object. This is typically the authoring Component's EntityId.

namespaceId

A unique number to identify the namespace

serial

A unique number used to differentiate Entities associated with the same originating object and namespace