#include <UiEntityContextBus.h>
Inherits AZ::EBusTraits.
|
typedef AzFramework::EntityContextId | BusIdType |
|
|
virtual AZ::Entity * | CreateUiEntity (const char *name)=0 |
|
virtual void | AddUiEntity (AZ::Entity *entity)=0 |
| Registers an existing entity with a UI context.
|
|
virtual void | AddUiEntities (const AzFramework::EntityList &entities)=0 |
| Registers an existing set of entities with a UI context.
|
|
virtual bool | DestroyUiEntity (AZ::EntityId entityId)=0 |
|
virtual bool | CloneUiEntities (const AZStd::vector< AZ::EntityId > &sourceEntities, AzFramework::EntityList &resultEntities)=0 |
|
|
static const AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::ById |
|
static const AZ::EBusHandlerPolicy | HandlerPolicy = AZ::EBusHandlerPolicy::Single |
|
Bus for making requests to the UI entity context. There is one UiEntityContext per UI canvas.
◆ CloneUiEntities()
virtual bool UiEntityContextRequests::CloneUiEntities |
( |
const AZStd::vector< AZ::EntityId > & |
sourceEntities, |
|
|
AzFramework::EntityList & |
resultEntities |
|
) |
| |
|
pure virtual |
Clones a set of entities.
- Parameters
-
sourceEntities | - the source set of entities to clone |
resultEntities | - the set of entities cloned from the source |
◆ CreateUiEntity()
virtual AZ::Entity * UiEntityContextRequests::CreateUiEntity |
( |
const char * |
name | ) |
|
|
pure virtual |
Creates an entity in a UI context.
- Returns
- a new entity
◆ DestroyUiEntity()
virtual bool UiEntityContextRequests::DestroyUiEntity |
( |
AZ::EntityId |
entityId | ) |
|
|
pure virtual |
Destroys an entity in a UI context.
- Returns
- whether or not the entity was destroyed. A false return value signifies the entity did not belong to the UI context.
The documentation for this class was generated from the following file:
- Gems/LyShine/Code/Include/LyShine/Bus/UiEntityContextBus.h