UnityObjectToEntityId
method in Coherence.Toolkit.CoherenceBridge
Methods
public Entity UnityObjectToEntityId(GameObject from)
Get the Entity for a UnityEngine.GameObject with CoherenceSync.
Parameters
Type | Name | Description |
---|---|---|
GameObject | from |
Returns
Type | Description |
---|---|
Entity |
public Entity UnityObjectToEntityId(Transform from)
Get the Entity for a Transform with CoherenceSync.
Parameters
Type | Name | Description |
---|---|---|
Transform | from |
Returns
Type | Description |
---|---|
Entity |
public Entity UnityObjectToEntityId(ICoherenceSync from)
Get the Entity for a CoherenceSync.
Parameters
Type | Name | Description |
---|---|---|
ICoherenceSync | from |
Returns
Type | Description |
---|---|
Entity |