#include <SliceCompilation.h>
Inherits AzToolsFramework::EditorOnlyEntityHandler.
Public Member Functions | |
bool | IsEntityUniquelyForThisHandler (AZ::Entity *entity) override |
void | AddEditorOnlyEntity (AZ::Entity *editorOnlyEntity, EntityIdSet &editorOnlyEntities) override |
Result | HandleEditorOnlyEntities (const AzToolsFramework::EntityList &entities, const AzToolsFramework::EntityIdSet &editorOnlyEntityIds, AZ::SerializeContext &serializeContext) override |
virtual bool | IsEntityUniquelyForThisHandler (AZ::Entity *entity)=0 |
virtual void | AddEditorOnlyEntity (AZ::Entity *editorOnlyEntity, EntityIdSet &editorOnlyEntities) |
virtual Result | HandleEditorOnlyEntities (const AzToolsFramework::EntityList &, const AzToolsFramework::EntityIdSet &, AZ::SerializeContext &) |
Additional Inherited Members | |
Public Types inherited from AzToolsFramework::EditorOnlyEntityHandler | |
using | Result = AZ::Outcome< void, AZStd::string > |
Static Public Member Functions inherited from AzToolsFramework::EditorOnlyEntityHandler | |
static Result | ValidateReferences (const AzToolsFramework::EntityList &entities, const AzToolsFramework::EntityIdSet &editorOnlyEntityIds, AZ::SerializeContext &serializeContext) |
EditorOnlyEntity handler for UI entities.
|
overridevirtual |
Adds the given entity ID to the set of editor only entities.
Handlers can customize this behavior, such as additionally adding child entities when a parent is marked as editor-only.
Reimplemented from AzToolsFramework::EditorOnlyEntityHandler.
|
overridevirtual |
This handler is responsible for making any necessary modifications to other entities in the slice prior to the removal of all editor-only entities. After this callback returns, editor-only entities will be removed from the slice. See WorldEditorOnlyEntityHandler below for an example of processing and validation that occurs for standard world entities.
entities | a list of all entities in the slice, including those marked as editor-only. |
editorOnlyEntityIds | a precomputed set containing Ids for all entities within the 'entities' list that were marked as editor-only. |
serializeContext | useful to inspect entity data for validation purposes. |
Reimplemented from AzToolsFramework::EditorOnlyEntityHandler.
|
overridevirtual |
Implements AzToolsFramework::EditorOnlyEntityHandler.