Navigation
API > API/Editor > API/Editor/Persona
References
| Module | Persona |
| Header | /Engine/Source/Editor/Persona/Public/IPersonaToolkit.h |
| Include | #include "IPersonaToolkit.h" |
Syntax
class IPersonaToolkit
Remarks
Reusable 'Persona' features for asset editors concerned with USkeleton-related assets
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual destructor |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Returns true if the preview mesh can use skeletal meshes that don't share the same skeleton as the one being edited. | ||
| void | CustomizeSceneSettings
(
IDetailLayoutBuilder& DetailBuilder |
Callback to customize the Preview Scene Settings details tab. | |
| UAnimationAsset * | Get the animation asset that we are editing | ||
| UAnimBlueprint * | Get the anim blueprint that we are editing | ||
| FName | GetContext () |
Get the context in which this toolkit is being used (usually the class name of the asset) | |
| int32 | GetCustomData
(
const int32 Key |
Retrieve editor custom data. Return INDEX_NONE if the key is invalid | |
| TSharedPtr< IEditableSkeleton > | Get the editable skeleton that we are editing | ||
| USkeletalMesh * | GetMesh () |
Get the skeletal mesh that we are editing | |
| UAnimBlueprint * | Get the preview anim blueprint, used to preview sub layers in context. | ||
| USkeletalMesh * | Get the preview mesh, according to context (mesh, skeleton or animation etc.). | ||
| UDebugSkelMeshComponent * | Get the preview component that we are using | ||
| TSharedRef< IPersonaPreviewScene > | Get the preview scene that we are using | ||
| USkeleton * | GetSkeleton () |
Get the skeleton that we are editing | |
| void | SetAnimationAsset
(
UAnimationAsset* InAnimationAsset |
Set the animation asset we are editing | |
| void | SetCustomData
(
const int32 Key, |
Store the custom data using the key. | |
| void | SetMesh
(
USkeletalMesh* InSkeletalMesh |
Set the skeletal mesh we are editing | |
| void | SetPreviewAnimationBlueprint
(
UAnimBlueprint* InAnimBlueprint |
Set the preview anim blueprint, used to preview sub layers in context. | |
| void | SetPreviewMesh
(
USkeletalMesh* InSkeletalMesh, |
Set the preview mesh, according to context (mesh, skeleton or animation etc.) Note that this sets the mesh in the asset and in the viewport (and may re-open the asset editor to apply this). |