#include <EditorWhiteBoxMeshAsset.h>
Inherits AZ::Data::AssetBus::Handler, WhiteBoxMeshAssetNotificationBus::Handler, IEditorNotifyListener, and AZ::TickBus::Handler.
Public Member Functions | |
void | Release () |
Release the stored WhiteBoxMeshAsset but retain the AssetId to be loaded again in future. | |
void | Reset () |
void | Associate (const AZ::EntityComponentIdPair &entityComponentIdPair) |
void | TakeOwnershipOfWhiteBoxMesh (const AZStd::string &relativeAssetPath, Api::WhiteBoxMeshPtr whiteBoxMesh) |
Transfer ownership of an in-memory White Box mesh and create an asset at the specified relative path. | |
WhiteBoxMesh * | GetWhiteBoxMesh () |
AZ::Data::AssetId | GetWhiteBoxMeshAssetId () const |
AZ::Data::Asset< Pipeline::WhiteBoxMeshAsset > | GetWhiteBoxMeshAsset () |
bool | InUse () const |
Helper to return if the White Box mesh asset id is valid or not (if it is valid, the asset is in use). | |
void | Load () |
void | Save () |
Write the asset to disk at its existing location. | |
void | Save (const AZStd::string &absolutePath) |
Write the asset to disk at an arbitrary location. | |
bool | Loaded () const |
void | Serialize () |
Store the in-memory representation of the WhiteBoxMesh to the current WhiteBoxMeshAsset. | |
Static Public Member Functions | |
static AZ_CLASS_ALLOCATOR_DECL void | Reflect (AZ::ReflectContext *context) |
Handle creating, loading and setting White Box mesh assets.
void WhiteBox::EditorWhiteBoxMeshAsset::Associate | ( | const AZ::EntityComponentIdPair & | entityComponentIdPair | ) |
Associate an EditorWhiteBoxMeshAsset with a specific entity/component id pair that changes will be propagated to.
WhiteBoxMesh * WhiteBox::EditorWhiteBoxMeshAsset::GetWhiteBoxMesh | ( | ) |
Returns the WhiteBoxMesh stored on this asset.
AZ::Data::Asset< Pipeline::WhiteBoxMeshAsset > WhiteBox::EditorWhiteBoxMeshAsset::GetWhiteBoxMeshAsset | ( | ) |
Returns the WhiteBoxMeshAsset.
AZ::Data::AssetId WhiteBox::EditorWhiteBoxMeshAsset::GetWhiteBoxMeshAssetId | ( | ) | const |
Returns the AssetId of the White Box mesh asset.
void WhiteBox::EditorWhiteBoxMeshAsset::Load | ( | ) |
Request a load of the stored asset.
bool WhiteBox::EditorWhiteBoxMeshAsset::Loaded | ( | ) | const |
void WhiteBox::EditorWhiteBoxMeshAsset::Reset | ( | ) |
Release the stored WhiteBoxMeshAsset and invalidate the AssetId to full clear the asset from use.