Navigation
API > API/Plugins > API/Plugins/DatasmithImporter > API/Plugins/DatasmithImporter/ObjectElements
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UDatasmithObjectElement
- UDatasmithMeshElement
References
| Module | DatasmithImporter |
| Header | /Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/ObjectElements/DatasmithUObjectElements.h |
| Include | #include "ObjectElements/DatasmithUObjectElements.h" |
Syntax
UCLASS&40;&41;
class UDatasmithMeshElement : public UDatasmithObjectElement
Remarks
UDatasmithMeshElement defines an actual geometry.
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | Get the bounding box depth | ||
| float | Get the bounding box height | ||
| FVector | Get the bounding box represented by a Vector. X is Width, Y is Height, Z is Depth. | ||
| float | Get the bounding box width | ||
| TWeakPtr< IDatasmithMeshElement > | |||
| FString | GetFile () |
Get the output filename, it can be absolute or relative to the scene file | |
| float | Get the total surface area | ||
| int32 | Get the UV channel that will be used for the lightmap | ||
| int32 | Get the source UV channel that will be used at import to generate the lightmap UVs | ||
| FString | GetMaterial
(
int32 SlotId |
Get the material name in the material slot SlotId | |
| void | SetDatasmithMeshElement
(
const TSharedPtr< IDatasmithMeshElement >& InElement |
||
| void | SetLightmapCoordinateIndex
(
int32 UVChannel |
Set the UV channel that will be used for the lightmap Note: If the lightmap coordinate index is something greater than -1 it will make the importer skip the lightmap generation | |
| void | SetLightmapSourceUV
(
int32 UVChannel |
Set the source UV channel that will be used at import to generate the lightmap UVs | |
| void | SetMaterial
(
const FString& MaterialName, |
Set the material name to associate with slot SlotId |
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 |