Navigation
API > API/Plugins > API/Plugins/ModelingComponentsEditorOnly > API/Plugins/ModelingComponentsEditorOnly/ToolTargets
Inheritance Hierarchy
- UObject
- UToolTarget
- USkeletalMeshReadOnlyToolTarget
- USkeletalMeshToolTarget
References
| Module | ModelingComponentsEditorOnly |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponentsEditorOnly/Public/ToolTargets/SkeletalMeshToolTarget.h |
| Include | #include "ToolTargets/SkeletalMeshToolTarget.h" |
Syntax
UCLASS (Transient)
class USkeletalMeshReadOnlyToolTarget :
public UToolTarget ,
public IMeshDescriptionProvider ,
public IDynamicMeshProvider ,
public IMaterialProvider ,
public ISkeletalMeshBackedTarget
Remarks
A tool target backed by a read-only skeletal mesh.
This is a special tool target that refers to the underlying asset (in this case a skeletal mesh), rather than indirectly through a component. This type of target is used in cases, such as opening an asset through the content browser, when there is no component available.
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | DefaultEditingLOD | The LOD to edit if requested to get/commit at EMeshLODIdentifier::Default or if no specific LOD is requested. | |
| TWeakObjectPtr< USkeletalMesh > | SkeletalMesh |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CommitMaterialSetUpdate
(
USkeletalMesh* SkeletalMesh, |
||
| TArray< EMeshLODIdentifier > | GetAvailableLODs
(
const USkeletalMesh* SkeletalMesh, |
||
| void | GetMaterialSet
(
const USkeletalMesh* SkeletalMesh, |
||
| int32 | GetValidEditingLOD
(
const USkeletalMesh* SkeletalMesh, |
||
| bool | IsValid
(
const USkeletalMesh* USkeletalMesh |
Overridden from UToolTarget
| Type | Name | Description | |
|---|---|---|---|
| bool | IsValid () |
UToolTarget. |
Overridden from IMeshDescriptionProvider
| Type | Name | Description | |
|---|---|---|---|
| TArray< EMeshLODIdentifier > | GetAvailableLODs
(
bool bSkipAutoGenerated |
For providers that have LODs (i.e. if SupportsLODs returns true), returns an array of all available LODs. | |
| FMeshDescription | Returns an empty mesh description appropriate for the provider, i.e. configured with appropriate mesh attributes but otherwise devoid of topology or element data. | ||
| const FMeshDescription * | GetMeshDescription
(
const FGetMeshParameters& GetMeshParams |
IMeshDescriptionProvider implementation. | |
| EMeshLODIdentifier | For providers that have LODs (i.e. if SupportsLODs returns true), returns the LOD that GetMeshDescription/etc will return. | ||
| bool | SupportsLODs () |
Overridden from IDynamicMeshProvider
| Type | Name | Description | |
|---|---|---|---|
| UE::Geometry::FDynamicMesh3 | GetDynamicMesh
(
const FGetMeshParameters& InGetMeshParams |
Gives a copy of a dynamic mesh for tools to operate on. | |
| UE::Geometry::FDynamicMesh3 | IDynamicMeshProvider. |
Overridden from IMaterialProvider
| Type | Name | Description | |
|---|---|---|---|
| bool | CommitMaterialSetUpdate
(
const FComponentMaterialSet& MaterialSet, |
Commit an update to the material set. | |
| UMaterialInterface * | GetMaterial
(
int32 MaterialIndex |
Get pointer to a Material provided by this Source | |
| void | GetMaterialSet
(
FComponentMaterialSet& MaterialSetOut, |
Get material set provided by this source | |
| int32 | IMaterialProvider implementation. |
Overridden from ISkeletalMeshBackedTarget
| Type | Name | Description | |
|---|---|---|---|
| USkeletalMesh * | ISkeletalMeshBackedTarget implementation. |