Class GameObjectEntity
Inheritance
System.Object
GameObjectEntity
Syntax
public class GameObjectEntity : MonoBehaviour
Properties
Entity
Declaration
public Entity Entity { get; }
Property Value
EntityManager
Declaration
public EntityManager EntityManager { get; }
Property Value
Methods
AddToEntity(EntityManager, GameObject, Entity)
Declaration
public static void AddToEntity(EntityManager entityManager, GameObject gameObject, Entity entity)
Parameters
Type |
Name |
Description |
EntityManager |
entityManager |
|
UnityEngine.GameObject |
gameObject |
|
Entity |
entity |
|
AddToEntityManager(EntityManager, GameObject)
Declaration
public static Entity AddToEntityManager(EntityManager entityManager, GameObject gameObject)
Parameters
Type |
Name |
Description |
EntityManager |
entityManager |
|
UnityEngine.GameObject |
gameObject |
|
Returns
CopyAllComponentsToEntity(GameObject, EntityManager, Entity)
Declaration
public static void CopyAllComponentsToEntity(GameObject gameObject, EntityManager entityManager, Entity entity)
Parameters
Type |
Name |
Description |
UnityEngine.GameObject |
gameObject |
|
EntityManager |
entityManager |
|
Entity |
entity |
|
OnDisable()
Declaration
protected virtual void OnDisable()
OnEnable()
Declaration
protected virtual void OnEnable()