IAssetFamily

Represents a group of related assets, e.g. a skeleton, its animations and skeletal meshes

References

Module

Persona

Header

/Engine/Source/Editor/Persona/Public/IAssetFamily.h

Include

#include "IAssetFamily.h"

Syntax

class IAssetFamily

Remarks

Represents a group of related assets, e.g. a skeleton, its animations and skeletal meshes

Destructors

Name Description

Public function Virtual

~IAssetFamily()

Virtual destructor

Functions

Name Description

Public function Const

FAssetData

 

FindAssetOfType

(
    UClass* AssetType
)

Find the most relevant asset of a specified type

Public function Const

void

 

FindAssetsOfType

(
    UClass* AssetType,
    TArray< FAssetData >& OutAssets
)

Find all assets of a specified type

Public function

FAssetData

 

GetAsset()

Find the most relevant asset of a specified type

Public function Const

UClass *

 

GetAssetFamilyClass

(
    UClass* InClass
)

Public function

void

 

GetAssets

(
    TArray< FAssetData >& OutAssets
)

Find all assets of a specified type

Public function Const

const FSlate...

 

GetAssetTypeDisplayIcon

(
    UClass* InAssetClass
)

Gets the slate brush that represents this asset family

Public function Const

FText

 

GetAssetTypeDisplayName

(
    UClass* InAssetClass
)

Gets the name of an asset that will be displayed to a user

Public function Const

FSlateColor

 

GetAssetTypeDisplayTint

(
    UClass* InAssetClass
)

Gets the color to tint the asset display icon

Public function Const

void

 

GetAssetTypes

(
    TArray< UClass* >& OutAssetTy...
)

Get all the asset classes this family supports (doesnt need to include derived classes)

Public function

IAssetFamily...

 

GetOnAssetFamilyChanged()

Public function

IAssetFamily...

 

GetOnAssetOpened()

Public function Const

bool

 

IsAssetCompatible

(
    const FAssetData& InAssetData
)

Check whether an asset is compatible with this family

Classes

Name

Description

Public class

FOnAssetFamilyChanged

Event fired when an asset family changes (e.g. relationships are altered)

Public class

FOnAssetOpened

Event fired when an asset is opened

Deprecated Functions

Name Description

Public function

void

 

RecordAssetOpened

(
    const FAssetData& InAssetData
)

Please use FPersonaModule::RecordAssetOpened to inform all asset familes rather than just one.

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