UDatasmithMeshElement

[UDatasmithMeshElement](API\Plugins\DatasmithImporter\ObjectElements\UDatasmithMeshElement) defines an actual geometry.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

DatasmithImporter

Header

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/ObjectElements/DatasmithUObjectElements.h

Include

#include "ObjectElements/DatasmithUObjectElements.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UDatasmithMeshElement : public UDatasmithObjectElement

Remarks

UDatasmithMeshElement defines an actual geometry.

Functions

Name Description

Public function Const UFunction BlueprintCallable, Category

float

 

GetBoundingBoxDepth()

Get the bounding box depth

Public function Const UFunction BlueprintCallable, Category

float

 

GetBoundingBoxHeight()

Get the bounding box height

Public function Const UFunction BlueprintCallable, Category

FVector

 

GetBoundingBoxSize()

Get the bounding box represented by a Vector. X is Width, Y is Height, Z is Depth.

Public function Const UFunction BlueprintCallable, Category

float

 

GetBoundingBoxWidth()

Get the bounding box width

Public function Const

TWeakPtr< ID...

 

GetDatasmithMeshElement()

Public function Const UFunction BlueprintCallable, Category

FString

 

GetFile()

Get the output filename, it can be absolute or relative to the scene file

Public function Const UFunction BlueprintCallable, Category

float

 

GetLightMapArea()

Get the total surface area

Public function Const UFunction BlueprintCallable, Category

int32

 

GetLightmapCoordinateIndex()

Get the UV channel that will be used for the lightmap

Public function Const UFunction BlueprintCallable, Category

int32

 

GetLightmapSourceUV()

Get the source UV channel that will be used at import to generate the lightmap UVs

Public function UFunction BlueprintCallable, Category

FString

 

GetMaterial

(
    int32 SlotId
)

Get the material name in the material slot SlotId

Public function

void

 

SetDatasmithMeshElement

(
    const TSharedPtr< IDatasmithMeshEle...
)

Public function UFunction BlueprintCallable, Category

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

Public function UFunction BlueprintCallable, Category

void

 

SetLightmapSourceUV

(
    int32 UVChannel
)

Set the source UV channel that will be used at import to generate the lightmap UVs

Public function UFunction BlueprintCallable, Category

void

 

SetMaterial

(
    const FString& MaterialName,
    int32 SlotId
)

Set the material name to associate with slot SlotId

Overridden from UDatasmithObjectElement

Name Description

Protected function Virtual Const

TWeakPtr< ID...

 

GetIDatasmithElement()

TODO: They are not covariant because of the TWeakPtr, can't override in child.

Public function Virtual Const

bool

 

IsElementValid()

Is the Element still valid for the Datasmith Scene

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss