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::PrefabOverrideHandler Class Reference

Public Member Functions

bool AreOverridesPresent (AZ::Dom::Path path, LinkId linkId) const
 
AZStd::optional< PatchType > GetPatchType (AZ::Dom::Path path, LinkId linkId) const
 
bool RevertOverrides (AZ::Dom::Path path, LinkId linkId) const
 

Member Function Documentation

◆ AreOverridesPresent()

bool AzToolsFramework::Prefab::PrefabOverrideHandler::AreOverridesPresent ( AZ::Dom::Path  path,
LinkId  linkId 
) const

Checks whether overrides are present on the link object matching the linkId at the provided path.

Parameters
pathThe path to check for overrides on the link object.
linkIdThe id of the link object to check for overrides.
Returns
true if overrides are present at the given path on the link object matching the link id.

◆ GetPatchType()

AZStd::optional< PatchType > AzToolsFramework::Prefab::PrefabOverrideHandler::GetPatchType ( AZ::Dom::Path  path,
LinkId  linkId 
) const

Gets the patch type on the link object matching the linkId at the provided path.

Parameters
pathThe path to get override type on the link object.
linkIdThe id of the link object to get overrides on.
Returns
a patch type if an override is present at the given path on the link object matching the link id.

◆ RevertOverrides()

bool AzToolsFramework::Prefab::PrefabOverrideHandler::RevertOverrides ( AZ::Dom::Path  path,
LinkId  linkId 
) const

Revert overrides corresponding to the provided path from the overrides stored in the link matching the link id.

Parameters
pathThe path at which overrides should be reverted from.
linkIdThe id of the link from which overrides should be reverted.
Returns
Whether overrides are reverted successfully.

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