Inherits AzToolsFramework::Prefab::InstanceDomGeneratorInterface.
◆ GetEntityDomFromTemplate()
void AzToolsFramework::Prefab::InstanceDomGenerator::GetEntityDomFromTemplate |
( |
PrefabDom & |
entityDom, |
|
|
const AZ::Entity & |
entity |
|
) |
| const |
|
overridevirtual |
Gets a copy of entity DOM for a given entity object from template based on the currently focused instance. If the owning instance of the given entity is descendant of the focused instance, entity DOM stored in focused template DOM is used; otherwise, the entity DOM stored in the root template DOM is used.
- Parameters
-
[out] | entityDom | The output entity DOM that will be modified. It must be empty so that it can be filled. |
| entity | The given entity object. |
Implements AzToolsFramework::Prefab::InstanceDomGeneratorInterface.
◆ GetInstanceDomFromTemplate()
void AzToolsFramework::Prefab::InstanceDomGenerator::GetInstanceDomFromTemplate |
( |
PrefabDom & |
instanceDom, |
|
|
const Instance & |
instance |
|
) |
| const |
|
overridevirtual |
Gets a copy of instance DOM for a given instance object from template based on the currently focused instance. If the given instance is descendant of the focused instance, instance DOM stored in focused template DOM is used; otherwise, the instance DOM stored in the root template DOM is used. Note: Link id would be valid in the generated DOM only if the given instance is a proper descendant of the focused or root instance.
- Parameters
-
[out] | instanceDom | The output instance DOM that will be modified. It must be empty so that it can be filled. |
| instance | The given instance object. |
Implements AzToolsFramework::Prefab::InstanceDomGeneratorInterface.
The documentation for this class was generated from the following file:
- Code/Framework/AzToolsFramework/AzToolsFramework/Prefab/Instance/InstanceDomGenerator.h