Class GameObjectEntity | Entities | 0.10.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Class GameObjectEntity

    Inheritance
    Object
    GameObjectEntity
    Namespace: Unity.Entities
    Syntax
    public class GameObjectEntity : UnityEngine.MonoBehaviour

    Properties

    Entity

    Declaration
    public Entity Entity { get; }
    Property Value
    Type Description
    Entity

    EntityManager

    Declaration
    public EntityManager EntityManager { get; }
    Property Value
    Type Description
    EntityManager

    Methods

    AddToEntity(EntityManager, UnityEngine.GameObject, Entity)

    Declaration
    public static void AddToEntity(EntityManager entityManager, UnityEngine.GameObject gameObject, Entity entity)
    Parameters
    Type Name Description
    EntityManager entityManager
    UnityEngine.GameObject gameObject
    Entity entity

    AddToEntityManager(EntityManager, UnityEngine.GameObject)

    Declaration
    public static Entity AddToEntityManager(EntityManager entityManager, UnityEngine.GameObject gameObject)
    Parameters
    Type Name Description
    EntityManager entityManager
    UnityEngine.GameObject gameObject
    Returns
    Type Description
    Entity

    CopyAllComponentsToEntity(UnityEngine.GameObject, EntityManager, Entity)

    Declaration
    public static void CopyAllComponentsToEntity(UnityEngine.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()
    In This Article
    • Properties
      • Entity
      • EntityManager
    • Methods
      • AddToEntity(EntityManager, UnityEngine.GameObject, Entity)
      • AddToEntityManager(EntityManager, UnityEngine.GameObject)
      • CopyAllComponentsToEntity(UnityEngine.GameObject, EntityManager, Entity)
      • OnDisable()
      • OnEnable()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023