docs.unity3d.com
    Show / Hide Table of Contents

    Method CreateAdditionalEntity

    CreateAdditionalEntity(UnityEngine.Object)

    Creates an additional entity in the destination world. The entity is associated with the given object. New entities should be created using this method since it ensures that the resulting entities have all data required for conversion correctly set up.

    Declaration
    public Entity CreateAdditionalEntity(UnityEngine.Object uobject)
    Parameters
    Type Name Description
    UnityEngine.Object uobject

    The object that the new entity will be associated with.

    Returns
    Type Description
    Entity

    The newly created entity.

    CreateAdditionalEntity(UnityEngine.Component)

    Creates an additional entity in the destination world. The entity is associated with the GameObject of the given component. New entities should be created using this method since it ensures that the resulting entities have all data required for conversion correctly set up.

    Declaration
    public Entity CreateAdditionalEntity(UnityEngine.Component component)
    Parameters
    Type Name Description
    UnityEngine.Component component

    A component of the GameObject that the new entity will be associated with.

    Returns
    Type Description
    Entity

    The newly created entity.

    CreateAdditionalEntity(UnityEngine.Object, NativeArray<Entity>)

    Creates multiple additional entities in the destination world. The entities are associated with the given object. New entities should be created using this method since it ensures that the resulting entities have all data required for conversion correctly set up.

    Declaration
    public void CreateAdditionalEntity(UnityEngine.Object uobject, NativeArray<Entity> outEntities)
    Parameters
    Type Name Description
    UnityEngine.Object uobject

    The object that the new entities will be associated with.

    NativeArray<Entity> outEntities

    This will be filled with the newly created entities.

    CreateAdditionalEntity(UnityEngine.Component, NativeArray<Entity>)

    Creates multiple additional entities in the destination world. The entities are associated with the GameObject of the given component. New entities should be created using this method since it ensures that the resulting entities have all data required for conversion correctly set up.

    Declaration
    public void CreateAdditionalEntity(UnityEngine.Component component, NativeArray<Entity> outEntities)
    Parameters
    Type Name Description
    UnityEngine.Component component

    A component of the GameObject that the new entities will be associated with.

    NativeArray<Entity> outEntities

    This will be filled with the newly created entities.

    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