docs.unity.cn
    Show / Hide Table of Contents

    Method SelectEntity

    SelectEntity(World, Entity)

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

    Declaration
    public static void SelectEntity(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.

    Remarks

    This operation does not return the created instance of EntitySelectionProxy. If you want to hold onto the created instance, please use CreateInstance(World, Entity) instead.

    This operation may produce no results if is

    null
    , if world.IsCreated is
    false
    , if the specified does not exist in the specified world, or if the current selection already points to the specified entity.

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