Navigation
API > API/Plugins > API/Plugins/ModelingComponentsEditorOnly > API/Plugins/ModelingComponentsEditorOnly/ToolTargets
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UToolTarget
- UStaticMeshToolTarget
References
| Module | ModelingComponentsEditorOnly |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponentsEditorOnly/Public/ToolTargets/StaticMeshToolTarget.h |
| Include | #include "ToolTargets/StaticMeshToolTarget.h" |
Syntax
UCLASS&40;Transient&41;
class UStaticMeshToolTarget :
public UToolTarget,
public IMeshDescriptionCommitter,
public IMeshDescriptionProvider,
public IMaterialProvider,
public IStaticMeshBackedTarget,
public IDynamicMeshProvider,
public IDynamicMeshCommitter
Remarks
A tool target backed by a static mesh asset that can provide and take a mesh description.
This is a special tool target that refers to the underlying asset (in this case a static 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 | |
|---|---|---|---|
| EMeshLODIdentifier | EditingLOD | ||
| checks of whether the UStaticMesh is and the LODcheck does not guard against a generated EMeshLODIde... | EditingLOD | ||
| TWeakObjectPtr< UStaticMesh > | StaticMesh |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CommitMaterialSetUpdate
(
UStaticMesh* SkeletalMesh, |
||
| void | CommitMeshDescription
(
UStaticMesh* StaticMesh, |
||
| TArray< EMeshLODIdentifier > | GetAvailableLODs
(
const UStaticMesh* StaticMesh, |
||
| EMeshLODIdentifier | |||
| void | GetMaterialSet
(
const UStaticMesh* StaticMesh, |
||
| EMeshLODIdentifier | GetValidEditingLOD
(
const UStaticMesh* StaticMesh, |
||
| bool | HasNonGeneratedLOD
(
const UStaticMesh* StaticMesh, |
Returns true if the mesh has a non-generated LOD of the requested level. Interprets EMeshLODIdentifier::Default as LOD0 | |
| checks of whether the UStaticMesh is and the LOD check does not guard against a generated | LOD
(
which" "tools should not edit |
||
| void | SetEditingLOD
(
EMeshLODIdentifier RequestedEditingLOD |
Configure active LOD to edit. |
Overridden from UToolTarget
| Type | Name | Description | |
|---|---|---|---|
| bool | IsValid () |
UToolTarget. |
Overridden from IMeshDescriptionCommitter
| Type | Name | Description | |
|---|---|---|---|
| void | CommitMeshDescription
(
const FCommitter& Committer, |
IMeshDescritpionCommitter implementation. |
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 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 IStaticMeshBackedTarget
| Type | Name | Description | |
|---|---|---|---|
| UStaticMesh * | IStaticMeshBackedTarget. |
Overridden from IDynamicMeshProvider
| Type | Name | Description | |
|---|---|---|---|
| UE::Geometry::FDynamicMesh3 | IDynamicMeshProvider. |
Overridden from IDynamicMeshCommitter
| Type | Name | Description | |
|---|---|---|---|
| void | CommitDynamicMesh
(
const UE::Geometry::FDynamicMesh3& Mesh, |
IDynamicMeshCommitter. |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| checks of whether the UStaticMesh is | alive | Compared to using a TWeakObjectPtr, this function performs both redundant and insufficient |