Navigation
API > API/Plugins > API/Plugins/ModelingComponentsEditorOnly > API/Plugins/ModelingComponentsEditorOnly/ToolTargets
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- 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&40;Transient&41;
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 | |
|---|---|---|---|
| TUniquePtr< FMeshDescription > | CachedMeshDescription | UntilUSkeletalMesh stores its internal representation as FMeshDescription, we need to retain the storage here to cover the lifetime of the pointer returned by GetMeshDescription(). | |
| TWeakObjectPtr< USkeletalMesh > | SkeletalMesh |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CommitMaterialSetUpdate
(
USkeletalMesh* SkeletalMesh, |
||
| void | GetMaterialSet
(
const USkeletalMesh* SkeletalMesh, |
||
| void | GetMeshDescription
(
const USkeletalMesh* SkeletalMesh, |
Overridden from UToolTarget
| Type | Name | Description | |
|---|---|---|---|
| bool | IsValid () |
UToolTarget. |
Overridden from IMeshDescriptionProvider
| Type | Name | Description | |
|---|---|---|---|
| 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. |
Overridden from IDynamicMeshProvider
| Type | Name | Description | |
|---|---|---|---|
| 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. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | IsValid
(
const USkeletalMesh* USkeletalMesh |
This function doesn't check anything skeletal mesh specific, only (badly) checks to see if the object is alive |