Open 3D Engine AzToolsFramework API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzToolsFramework::Prefab::PrefabIntegrationInterface Class Referenceabstract

Inherited by AzToolsFramework::Prefab::PrefabIntegrationManager.

Public Member Functions

 AZ_RTTI (PrefabIntegrationInterface, "{B88AE045-7711-49BC-8336-45003D1C9116}")
 
virtual AZ::EntityId CreateNewEntityAtPosition (const AZ::Vector3 &position, AZ::EntityId parentId)=0
 
virtual int HandleRootPrefabClosure (TemplateId templateId)=0
 
virtual void SaveCurrentPrefab ()=0
 Saves the prefab currently focused in the main editor window and all its descendants.
 

Member Function Documentation

◆ CreateNewEntityAtPosition()

virtual AZ::EntityId AzToolsFramework::Prefab::PrefabIntegrationInterface::CreateNewEntityAtPosition ( const AZ::Vector3 &  position,
AZ::EntityId  parentId 
)
pure virtual

Create a new entity at the position provided.

Parameters
positionThe position the new entity will be created at.
parentIdThe id of the parent of the newly created entity.
Returns
The id of the newly created entity.

Implemented in AzToolsFramework::Prefab::PrefabIntegrationManager.

◆ HandleRootPrefabClosure()

virtual int AzToolsFramework::Prefab::PrefabIntegrationInterface::HandleRootPrefabClosure ( TemplateId  templateId)
pure virtual

Handles the save on close behavior for the root prefab with the TemplateId provided.

Parameters
templateIdThe id of the template the user chose to close.

Implemented in AzToolsFramework::Prefab::PrefabIntegrationManager.

◆ SaveCurrentPrefab()

virtual void AzToolsFramework::Prefab::PrefabIntegrationInterface::SaveCurrentPrefab ( )
pure virtual

Saves the prefab currently focused in the main editor window and all its descendants.

Implemented in AzToolsFramework::Prefab::PrefabIntegrationManager.


The documentation for this class was generated from the following file: