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
null
, if world.IsCreated is false
, if the specified