docs.unity.cn
    Show / Hide Table of Contents

    Method CreateEntity

    CreateEntity(EntityArchetype)

    Create an entity with specified archetype.

    Declaration
    public Entity CreateEntity(EntityArchetype archetype)
    Parameters
    Type Name Description
    EntityArchetype archetype

    The archetype of the new entity.

    Returns
    Type Description
    Entity

    CreateEntity()

    Create an entity with no components.

    Declaration
    public Entity CreateEntity()
    Returns
    Type Description
    Entity
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Friday, May 28, 2021