Navigation
API > API/Plugins > API/Plugins/DatasmithImporter
| Name | FDatasmithStaticMeshImporter |
| Type | class |
| Header File | /Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/DatasmithStaticMeshImporter.h |
| Include Path | #include "DatasmithStaticMeshImporter.h" |
Syntax
class FDatasmithStaticMeshImporter
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void ApplyMaterialsToStaticMesh
(
const FDatasmithAssetsImportContext& AssetsContext, |
Applies the UMaterialInterfaces related to the IDatasmithMeshElement to the UStaticMesh. | DatasmithStaticMeshImporter.h | |
static void BuildStaticMesh
(
UStaticMesh* StaticMesh |
Performs the actual building of the static mesh | DatasmithStaticMeshImporter.h | |
static void BuildStaticMeshes
(
const TArray< UStaticMesh* >& StaticMeshes, |
Performs the actual building of the static meshes in batch for better efficiency | DatasmithStaticMeshImporter.h | |
static TMap< TSharedRef< IDatasmithMeshElement >, float > CalculateMeshesLightmapWeights
(
const TSharedRef< IDatasmithScene >& SceneElement |
Calculates a lightmap density ratio for each IDatasmithMeshElement in the IDatasmithScene. | DatasmithStaticMeshImporter.h | |
static 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). | DatasmithStaticMeshImporter.h | |
static UStaticMesh * ImportStaticMesh
(
const TSharedRef< IDatasmithMeshElement > MeshElement, |
Imports a static mesh from a Mesh Element | DatasmithStaticMeshImporter.h | |
static bool PreBuildStaticMesh
(
UStaticMesh* StaticMesh |
Performs threadable build step on the static mesh, to be called before BuildStaticMesh | DatasmithStaticMeshImporter.h | |
static void PreBuildStaticMeshes
(
FDatasmithImportContext& ImportContext |
Builds the lightmap UVs and tangents for all the imported meshes. | DatasmithStaticMeshImporter.h | |
static void ProcessCollision
(
UStaticMesh* StaticMesh, |
DatasmithStaticMeshImporter.h | ||
static void SetupStaticMesh
(
FDatasmithAssetsImportContext& AssetsContext, |
Setup a UStaticMesh from an IDatasmithMeshElement. | DatasmithStaticMeshImporter.h | |
static bool ShouldRecomputeNormals
(
const FMeshDescription& MeshDescription, |
DatasmithStaticMeshImporter.h | ||
static bool ShouldRecomputeTangents
(
const FMeshDescription& MeshDescription, |
DatasmithStaticMeshImporter.h |