Navigation
API > API/Plugins > API/Plugins/DatasmithImporter > API/Plugins/DatasmithImporter/ObjectElements
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UDatasmithObjectElement
- UDatasmithActorElement
- UDatasmithMeshActorElement
References
| Module | DatasmithImporter |
| Header | /Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/ObjectElements/DatasmithUObjectElements.h |
| Include | #include "ObjectElements/DatasmithUObjectElements.h" |
Syntax
UCLASS&40;&41;
class UDatasmithMeshActorElement : public UDatasmithActorElement
Remarks
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddMaterialOverride
(
UDatasmithMaterialIDElement* Material |
Adds a new material to the Actor Element | |
| FVector | Get the Bounding Box of the Actor as a Vector. | ||
| TWeakPtr< IDatasmithMeshActorElement > | |||
| int32 | Get the amount of materials on this mesh | ||
| TArray< UDatasmithMaterialIDElement * > | GetMaterials () |
Get the i-th material of this actor | |
| UDatasmithMeshElement * | Get the Datasmith MeshElement associated with the actor. | ||
| FString | Get the path name of the StaticMesh associated with the actor | ||
| bool | |||
| void | RemoveMaterialOverride
(
UDatasmithMaterialIDElement* Material |
Get the amount of materials on this mesh | |
| void | SetDatasmithMeshActorElement
(
const TSharedPtr< IDatasmithMeshActorElement >& InElement |
||
| void | SetStaticMeshPathName
(
const FString& InStaticMeshName |
Set the path name of the StaticMesh that the actor is using It can be either a package path to refer to an existing mesh or a mesh name to refer to a MeshElement in the DatasmithScene |
Overridden from UDatasmithActorElement
| Type | Name | Description | |
|---|---|---|---|
| TWeakPtr< IDatasmithActorElement > |
Overridden from UDatasmithObjectElement
| Type | Name | Description | |
|---|---|---|---|
| TWeakPtr< IDatasmithElement > | TODO: They are not covariant because of the TWeakPtr, can't override in child. | ||
| bool | Is the Element still valid for the Datasmith Scene |