Navigation
API > API/Plugins > API/Plugins/DatasmithImporter > API/Plugins/DatasmithImporter/Utility
References
| Module | DatasmithImporter |
| Header | /Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/Utility/DatasmithImporterUtils.h |
| Include | #include "Utility/DatasmithImporterUtils.h" |
Syntax
class FDatasmithImporterUtils
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddUniqueLayersToWorld
(
UWorld* World, |
Add a layer to the world if there is no other layer with the same name | |
| bool | CanCreateAsset
(
const FString& AssetPathName, |
||
| bool | CanCreateAsset
(
const UPackage* Package, |
||
| EAssetCreationStatus | CanCreateAsset
(
const FString& AssetPathName, |
||
| bool | CanCreateAsset
(
const FString& AssetPathName, |
||
| EAssetCreationStatus | CanCreateAsset
(
const FString& AssetPathName |
||
| ADatasmithSceneActor * | CreateImportSceneActor
(
FDatasmithImportContext& ImportContext, |
Spawns a ADatasmithSceneActor and adds it to the ImportContext | |
| bool | |||
| void | DeleteActor
(
AActor& Actor |
Delete an actor Remove it from the it's level, mark it pending kill and move it the transient package to avoid any potential name collision | |
| void | DeleteNonImportedDatasmithElementFromSceneActor
(
ADatasmithSceneActor& SourceSceneActor, |
Delete non imported datasmith elements (actors and components) from a Datasmith Scene Actor hierarchy | |
| T * | DuplicateObject
(
T* SourceObject, |
||
| UStaticMesh * | DuplicateStaticMesh
(
UStaticMesh* SourceStaticMesh, |
Specialization of the duplication of a StaticMesh object specifically optimized for datasmith use case. | |
| void | FillSceneElement
(
TSharedPtr< IDatasmithScene >& SceneElement, |
Converts AActor objects into DatasmithActorElement objects and add them to a DatasmithScene | |
| UTexture * | FindAsset
(
const FDatasmithAssetsImportContext& AssetsContext, |
||
| ObjectType * | FindAsset
(
const FDatasmithAssetsImportContext& AssetsContext, |
Finds a UStaticMesh, UTexture or UMaterialInterface. | |
| UDatasmithScene * | FindDatasmithSceneForAsset
(
UObject* Asset |
Finds the UDatasmithScene for which the Asset belongs to. | |
| ObjectType * | FindObject
(
const UPackage* ParentPackage, |
Find an object with a given name in a package Use FSoftObjectPath to perform the search Load the package /ParentPackage/ObjectName if it exists and is not in memory yet | |
| TArray< ADatasmithSceneActor * > | FindSceneActors
(
UWorld* World, |
Finds all the ADatasmithSceneActor in the world that refers to the given scene | |
| int32 | GetAssetNameMaxCharCount
(
const UPackage* ParentPackage |
Try to compute a char budget for asset names, including FNames constraints, OS constraints, parent package, and user defined limitation. | |
| FName | GetDatasmithElementId
(
UObject* Object |
||
| FString | GetDatasmithElementIdString
(
UObject* Object |
||
| TArray< FFunctionAndMaterialsThatUseIt > | GetOrderedListOfMaterialsReferencedByMaterials
(
TSharedPtr< IDatasmithScene >& SceneElement |
Finds all materials that are referenced by other materials in the scene and returns a list ordered by dependencies, making sure that materials referencing other materials in the list will come after. | |
| TSharedPtr< IDatasmithScene > | LoadDatasmithScene
(
UDatasmithScene* DatasmithSceneAsset |
Loads an IDatasmithScene from a UDatasmithScene | |
| void | SaveDatasmithScene
(
TSharedRef< IDatasmithScene > DatasmithScene, |
Saves an IDatasmithScene into a UDatasmithScene | |
| UObject * | StaticDuplicateObject
(
UObject* SourceObject, |
Convenience function duplicating an object specifically optimized for datasmith use cases |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FDatasmithMaterialImportIterator |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EAssetCreationStatus |
Typedefs
| Name | Description |
|---|---|
| FFunctionAndMaterialsThatUseIt |