Open 3D Engine AtomLyIntegration Gem 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.
AZ::AtomBridge::AssetCollectionAsyncLoaderTestComponent Class Reference

Inherits AzToolsFramework::Components::EditorComponentBase, and AssetCollectionAsyncLoaderTestBus::Handler.

Public Member Functions

 AZ_EDITOR_COMPONENT (AssetCollectionAsyncLoaderTestComponent, "{D0A558AD-F8CD-4DB8-80A4-40B4E1F947FA}", AzToolsFramework::Components::EditorComponentBase, AssetCollectionAsyncLoaderTestInterface) void Activate() override
 
void Deactivate () override
 
bool StartLoadingAssetsFromJsonFile (const AZStd::string &pathToAssetListJson) override
 
bool StartLoadingAssetsFromAssetList (const AZStd::vector< AZStd::string > &assetList) override
 
void CancelLoadingAssets () override
 
AZStd::vector< AZStd::string > GetPendingAssetsList () const override
 
uint32_t GetCountOfPendingAssets () const override
 
bool ValidateAssetWasLoaded (const AZStd::string &assetPath) const override
 

Protected Types

enum class  State { Idle , LoadingAssets , FatalError }
 

Protected Member Functions

AZ::Crc32 OnStartCancelButtonClicked ()
 
AZStd::string GetStartCancelButtonText () const
 

Static Protected Member Functions

static void GetProvidedServices (AZ::ComponentDescriptor::DependencyArrayType &services)
 
static void GetIncompatibleServices (AZ::ComponentDescriptor::DependencyArrayType &services)
 
static void Reflect (AZ::ReflectContext *context)
 

Protected Attributes

AZStd::string m_pathToAssetListJson
 
State m_state = State::Idle
 Non-serialized member variables.
 
AZStd::unordered_set< AZStd::string > m_pendingAssets
 
AZStd::unique_ptr< AZ::AssetCollectionAsyncLoader > m_assetCollectionAsyncLoader
 

Member Data Documentation

◆ m_pathToAssetListJson

AZStd::string AZ::AtomBridge::AssetCollectionAsyncLoaderTestComponent::m_pathToAssetListJson
protected

Serialized member variables. A user editable path to a json file that contains the list of assets to load.


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