Navigation
API > API/Plugins > API/Plugins/DatasmithImporter
References
| Module | DatasmithImporter |
| Header | /Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/DatasmithStaticMeshImporter.h |
| Include | #include "DatasmithStaticMeshImporter.h" |
Syntax
class FDatasmithStaticMeshImporter
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BuildStaticMesh
(
UStaticMesh* StaticMesh |
Performs the actual building of the static mesh | |
| void | BuildStaticMeshes
(
const TArray< UStaticMesh* >& StaticMeshes, |
Performs the actual building of the static meshes in batch for better efficiency | |
| TMap< TSharedRef< IDatasmithMeshElement >, float > | CalculateMeshesLightmapWeights
(
const TSharedRef< IDatasmithScene >& SceneElement |
Calculates a lightmap density ratio for each IDatasmithMeshElement in the IDatasmithScene. | |
| void | CleanupMeshDescriptions
(
TArray< FMeshDescription >& MeshDescriptions |
Cleanup any invalid data in mesh descriptions that might cause the editor to crash or behave erratically (i.e. Having vertex position with NaN values). | |
| UStaticMesh * | ImportStaticMesh
(
const TSharedRef< IDatasmithMeshElement > MeshElement, |
Imports a static mesh from a Mesh Element | |
| bool | PreBuildStaticMesh
(
UStaticMesh* StaticMesh |
Performs threadable build step on the static mesh, to be called before BuildStaticMesh | |
| void | PreBuildStaticMeshes
(
FDatasmithImportContext& ImportContext |
Builds the lightmap UVs and tangents for all the imported meshes. | |
| void | SetupStaticMesh
(
FDatasmithAssetsImportContext& AssetsContext, |
Setup a UStaticMesh from an IDatasmithMeshElement. | |
| bool | ShouldRecomputeNormals
(
const FMeshDescription& MeshDescription, |
||
| bool | ShouldRecomputeTangents
(
const FMeshDescription& MeshDescription, |