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::AssetEditor::AssetEditorWidget Class Reference

#include <AssetEditorWidget.h>

Inherits QWidget, and AZ::SystemTickBus::Handler.

Public Slots

void OpenAssetWithDialog ()
 
void OpenAssetFromPath (const AZStd::string &fullPath)
 
void OnAssetSaveFailed (const AZStd::string &error)
 
void OnAssetOpened (const AZ::Data::Asset< AZ::Data::AssetData > &asset)
 
void SaveAsset ()
 
void SaveAssetAs ()
 
void ExpandAll ()
 
void CollapseAll ()
 
void currentTabChanged (int newCurrentIndex)
 
void onTabCloseButtonPressed (int tabIndexToClose)
 

Signals

void OnAssetSaveFailedSignal (const AZStd::string &error)
 
void OnAssetOpenedSignal (const AZ::Data::Asset< AZ::Data::AssetData > &asset)
 

Public Member Functions

 AZ_CLASS_ALLOCATOR (AssetEditorWidget, AZ::SystemAllocator)
 
 AssetEditorWidget (QWidget *parent=nullptr)
 
void CreateAsset (AZ::Data::AssetType assetType, const AZ::Uuid &observerToken)
 
void OpenAsset (const AZ::Data::Asset< AZ::Data::AssetData > asset)
 
bool SaveAssetToPath (AZStd::string_view assetPath)
 
void SaveAll ()
 
bool SaveAllAndClose ()
 
void SetStatusText (const QString &assetStatus)
 
void UpdateSaveMenuActionsStatus ()
 
void SetCurrentTab (AssetEditorTab *tab)
 
void UpdateTabTitle (AssetEditorTab *tab)
 
void SetLastSavePath (const AZStd::string &savePath)
 
const QString GetLastSavePath () const
 
void AddRecentPath (const AZStd::string &recentPath)
 
void CloseTab (AssetEditorTab *tab)
 
void CloseTabAndContainerIfEmpty (AssetEditorTab *tab)
 
bool IsValidAssetType (const AZ::Data::AssetType &assetType) const
 
void CreateAsset (AZ::Data::AssetType assetType)
 

Protected Member Functions

void UpdateRecentFileListState ()
 

Detailed Description

Provides ability to create, edit, and save reflected assets.


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