FComponentAssetBrokerage

Utility class that associates assets with component classes

Windows
MacOS
Linux

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

Name Description

Public function Static

bool

 

AssignAssetToComponent

(
    UActorComponent* InComponent,
    UObject* InAsset
)

Assign the assigned asset to the supplied component

Public function Static

TSharedPtr< ...

 

FindBrokerByAssetType

(
    UClass* InAssetClass
)

Try to find the primary broker for the specified asset type

Public function Static

TSharedPtr< ...

 

FindBrokerByComponentType

(
    TSubclassOf< UActorComponent > InCo...
)

Try to find the broker for the specified component type

Public function Static

UObject *...

 

GetAssetFromComponent

(
    UActorComponent* InComponent
)

Get the currently assigned asset from the component

Public function Static

TArray< TSub...

 

GetComponentsForAsset

(
    const UObject* InAsset
)

Find set of components that support this asset

Public function Static

TSubclassOf<...

 

GetPrimaryComponentForAsset

(
    UClass* InAssetClass
)

Get the primary component for this asset

Public function Static

TArray< UCla...

 

GetSupportedAssets

(
    UClass* InFilterComponentClass
)

Get the currently supported assets, optionally filtered by the supplied component class

Public function Static

void

 

PRIVATE_ShutdownBrokerage()

Shut down the brokerage; should only be called by the editor during shutdown

Public function Static

void

 

RegisterAssetToComponentMapping

(
    UClass* InAssetClass,
    TSubclassOf< UActorComponent > InCo...,
    bool bSetAsPrimary
)

Register a component class for a specified asset class

Public function Static

void

 

RegisterBroker

(
    TSharedPtr< IComponentAssetBroker >...,
    TSubclassOf< UActorComponent > InCo...,
    bool bSetAsPrimary,
    bool bMapComponentForAssets
)

Register a component class for a specified asset class

Public function Static

bool

 

SupportsAssets

(
    UActorComponent* InComponent
)

See if this component supports assets of any type

Public function Static

void

 

UnregisterAssetToComponentMapping

(
    UClass* InAssetClass,
    TSubclassOf< UActorComponent > InCo...
)

Unregister a component type for a specified asset class

Public function Static

void

 

UnregisterBroker

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss