#include <SliceCompilation.h>
Inherits AzToolsFramework::EditorOnlyEntityHandler.
|
static void | FixTransformRelationships (const AzToolsFramework::EntityList &entities, const AzToolsFramework::EntityIdSet &editorOnlyEntityIds) |
|
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 world entities.
- Fixes up transform relationships so entities removed mid-hierarchy still result in valid runtime transform relationships and correct relative transforms.
- Validates that no editor entities are referenced by non-editor entities.
◆ HandleEditorOnlyEntities()
Result AzToolsFramework::WorldEditorOnlyEntityHandler::HandleEditorOnlyEntities |
( |
const AzToolsFramework::EntityList & |
, |
|
|
const AzToolsFramework::EntityIdSet & |
, |
|
|
AZ::SerializeContext & |
|
|
) |
| |
|
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.
- Parameters
-
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.
◆ IsEntityUniquelyForThisHandler()
bool AzToolsFramework::WorldEditorOnlyEntityHandler::IsEntityUniquelyForThisHandler |
( |
AZ::Entity * |
entity | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following file:
- Code/Framework/AzToolsFramework/AzToolsFramework/Slice/SliceCompilation.h