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