Used for sending and/or recieving notifications regarding events related to files created through the Asset Browser.
More...
#include <AssetBrowserBus.h>
Inherits AZ::EBusTraits.
|
using | BusIdType = AZ::Crc32 |
|
|
static const AZ::EBusHandlerPolicy | HandlerPolicy = AZ::EBusHandlerPolicy::Single |
|
static const AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::ById |
|
static constexpr AZ::Crc32 | FileCreationNotificationBusId = AZ::Crc32("AssetBrowserFileCreationNotification") |
|
Used for sending and/or recieving notifications regarding events related to files created through the Asset Browser.
◆ HandleAssetCreatedInEditor()
virtual void AzToolsFramework::AssetBrowser::AssetBrowserFileCreationNotifications::HandleAssetCreatedInEditor |
( |
const AZStd::string_view |
, |
|
|
const AZ::Crc32 & |
, |
|
|
const bool |
|
|
) |
| |
|
inlinevirtual |
Notifies the handler that a new asset was created from the editor so they can handle renaming or other behavior as necessary.
- Parameters
-
assetPath | The full path to the asset that was created. |
creatorBusId | The file creator's bus handler address. A default constructed Crc32 implies no one is listening. |
initialFilenameChange | Notifies the handler that this file should give users the option to rename upon creation, set to false if you will use custom naming |
◆ HandleInitialFilenameChange()
virtual void AzToolsFramework::AssetBrowser::AssetBrowserFileCreationNotifications::HandleInitialFilenameChange |
( |
const AZStd::string_view |
| ) |
|
|
inlinevirtual |
Notifies a given handler that an asset which was recently created has been given a non-default name.
- Parameters
-
assetPath | The full path to the asset that had its initial name change. |
◆ FileCreationNotificationBusId
constexpr AZ::Crc32 AzToolsFramework::AssetBrowser::AssetBrowserFileCreationNotifications::FileCreationNotificationBusId = AZ::Crc32("AssetBrowserFileCreationNotification") |
|
staticconstexpr |
The ebus address to use when notifying the Asset Browser component that a new file was created through the Asset Browser. Note that addresses for individual asset creators should be specified in their respective code.
The documentation for this class was generated from the following file:
- Code/Framework/AzToolsFramework/AzToolsFramework/AssetBrowser/AssetBrowserBus.h