Navigation
API > API/Editor > API/Editor/UnrealEd
Utility class that associates assets with component classes
| Name | FComponentAssetBrokerage |
| Type | class |
| Header File | /Engine/Source/Editor/UnrealEd/Public/ComponentAssetBroker.h |
| Include Path | #include "ComponentAssetBroker.h" |
Syntax
class FComponentAssetBrokerage
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FComponentAssetBrokerage() |
ComponentAssetBroker.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| AssetToBrokerMap | TMap< UClass *, TArray< TSharedPtr< IComponentAssetBroker > > > | Map from asset type to the primary broker for that type. | ComponentAssetBroker.h |
| AssetToComponentClassMap | TMap< UClass *, FComponentClassList > | Map from an asset class to all component classes that can use it The first one in the array is the 'primary' | ComponentAssetBroker.h |
| bInitializedBuiltinMap | bool | ComponentAssetBroker.h | |
| bShutSystemDown | bool | ComponentAssetBroker.h | |
| ComponentToBrokerMap | TMap< TSubclassOf< UActorComponent >, TSharedPtr< IComponentAssetBroker > > | Map from component type to the broker for that type. | ComponentAssetBroker.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool AssignAssetToComponent
(
UActorComponent* InComponent, |
Assign the assigned asset to the supplied component | ComponentAssetBroker.h | |
static TSharedPtr< IComponentAssetBroker > FindBrokerByAssetType
(
UClass* InAssetClass |
Try to find the primary broker for the specified asset type | ComponentAssetBroker.h | |
static TSharedPtr< IComponentAssetBroker > FindBrokerByComponentType
(
TSubclassOf< UActorComponent > InComponentClass |
Try to find the broker for the specified component type | ComponentAssetBroker.h | |
static UObject * GetAssetFromComponent
(
UActorComponent* InComponent |
Get the currently assigned asset from the component | ComponentAssetBroker.h | |
static TArray< TSubclassOf< UActorComponent > > GetComponentsForAsset
(
const UObject* InAsset |
Find set of components that support this asset | ComponentAssetBroker.h | |
static TSubclassOf< UActorComponent > GetPrimaryComponentForAsset
(
UClass* InAssetClass |
Get the primary component for this asset | ComponentAssetBroker.h | |
| Get the currently supported assets, optionally filtered by the supplied component class | ComponentAssetBroker.h | ||
static void InitializeMap() |
ComponentAssetBroker.h | ||
static void PRIVATE_ShutdownBrokerage() |
Shut down the brokerage; should only be called by the editor during shutdown | ComponentAssetBroker.h | |
static void RegisterAssetToComponentMapping
(
UClass* InAssetClass, |
Register a component class for a specified asset class | ComponentAssetBroker.h | |
static void RegisterBroker
(
TSharedPtr< IComponentAssetBroker > Broker, |
Register a component class for a specified asset class | ComponentAssetBroker.h | |
static bool SupportsAssets
(
UActorComponent* InComponent |
See if this component supports assets of any type | ComponentAssetBroker.h | |
static void UnregisterAssetToComponentMapping
(
UClass* InAssetClass, |
Unregister a component type for a specified asset class | ComponentAssetBroker.h | |
static void UnregisterBroker
(
TSharedPtr< IComponentAssetBroker > Broker |
Unregister a component type for a specified asset class | ComponentAssetBroker.h |