docs.unity3d.com
    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 © 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