Language:
Discover
By Skill Level
By Category

FComponentAssetBrokerage

Choose your OS:

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
)

FComponentAssetBrokerageage.

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

FComponentAssetBrokerageage statics.

bInitializedBuiltinMap

bShutSystemDown

ComponentToBrokerMap

Map from component type to the broker for that type.

References

Module

UnrealEd

Header

Editor/UnrealEd/Public/ComponentAssetBroker.h