docs.unity.cn
    Show / Hide Table of Contents

    Method CreateInstance

    CreateInstance(World, Entity)

    Creates and configures an instance of EntitySelectionProxy wrapping the specified Entity.

    Declaration
    public static EntitySelectionProxy CreateInstance(World world, Entity entity)
    Parameters
    Type Name Description
    World world

    The World in which the Entity exists.

    Entity entity

    The entity to be wrapped by this instance of EntitySelectionProxy.

    Returns
    Type Description
    EntitySelectionProxy

    A fully configured EntitySelectionProxy, wrapping the specified entity.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown when is

    null
    or world.IsCreated is
    false
    .

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use