Navigation
API > API/Plugins > API/Plugins/DatasmithImporter
| Name | FDatasmithImporterUtils |
| Type | class |
| Header File | /Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/Utility/DatasmithImporterUtils.h |
| Include Path | #include "Utility/DatasmithImporterUtils.h" |
Syntax
class FDatasmithImporterUtils
Classes
| Name | Remarks |
|---|---|
| FDatasmithMaterialImportIterator |
Enums
Public
| Name | Remarks |
|---|---|
| EAssetCreationStatus |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FFunctionAndMaterialsThatUseIt | TPair< TSharedPtr< IDatasmithUEPbrMaterialElement >, TArray< TSharedPtr< IDatasmithUEPbrMaterialElement > > > | Utility/DatasmithImporterUtils.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Add a layer to the world if there is no other layer with the same name | Utility/DatasmithImporterUtils.h | ||
static bool CanCreateAsset
(
const FString& AssetPathName, |
Utility/DatasmithImporterUtils.h | ||
static bool CanCreateAsset
(
const UPackage* Package, |
Utility/DatasmithImporterUtils.h | ||
static EAssetCreationStatus CanCreateAsset
(
const FString& AssetPathName, |
Utility/DatasmithImporterUtils.h | ||
static bool CanCreateAsset
(
const FString& AssetPathName, |
Utility/DatasmithImporterUtils.h | ||
static EAssetCreationStatus CanCreateAsset
(
const FString& AssetPathName |
Utility/DatasmithImporterUtils.h | ||
static ADatasmithSceneActor * CreateImportSceneActor
(
FDatasmithImportContext& ImportContext, |
Spawns a ADatasmithSceneActor and adds it to the ImportContext | Utility/DatasmithImporterUtils.h | |
| Utility/DatasmithImporterUtils.h | |||
static 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 | Utility/DatasmithImporterUtils.h | |
static void DeleteNonImportedDatasmithElementFromSceneActor
(
ADatasmithSceneActor& SourceSceneActor, |
Delete non imported datasmith elements (actors and components) from a Datasmith Scene Actor hierarchy | Utility/DatasmithImporterUtils.h | |
| Utility/DatasmithImporterUtils.h | |||
static UStaticMesh * DuplicateStaticMesh
(
UStaticMesh* SourceStaticMesh, |
Specialization of the duplication of a StaticMesh object specifically optimized for datasmith use case. | Utility/DatasmithImporterUtils.h | |
static void FillSceneElement
(
TSharedPtr< IDatasmithScene >& SceneElement, |
Converts AActor objects into DatasmithActorElement objects and add them to a DatasmithScene | Utility/DatasmithImporterUtils.h | |
static UTexture * FindAsset
(
const FDatasmithAssetsImportContext& AssetsContext, |
Utility/DatasmithImporterUtils.h | ||
static ObjectType * FindAsset
(
const FDatasmithAssetsImportContext& AssetsContext, |
Finds a UStaticMesh, UTexture or UMaterialInterface. | Utility/DatasmithImporterUtils.h | |
static UDatasmithScene * FindDatasmithSceneForAsset
(
UObject* Asset |
Finds the UDatasmithScene for which the Asset belongs to. | Utility/DatasmithImporterUtils.h | |
| 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 | Utility/DatasmithImporterUtils.h | ||
static TArray< ADatasmithSceneActor * > FindSceneActors
(
UWorld* World, |
Finds all the ADatasmithSceneActor in the world that refers to the given scene | Utility/DatasmithImporterUtils.h | |
static 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. | Utility/DatasmithImporterUtils.h | |
| Utility/DatasmithImporterUtils.h | |||
| Utility/DatasmithImporterUtils.h | |||
static 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. | Utility/DatasmithImporterUtils.h | |
static TSharedPtr< IDatasmithScene > LoadDatasmithScene
(
UDatasmithScene* DatasmithSceneAsset |
Loads an IDatasmithScene from a UDatasmithScene | Utility/DatasmithImporterUtils.h | |
static void SaveDatasmithScene
(
TSharedRef< IDatasmithScene > DatasmithScene, |
Saves an IDatasmithScene into a UDatasmithScene | Utility/DatasmithImporterUtils.h | |
| Convenience function duplicating an object specifically optimized for datasmith use cases | Utility/DatasmithImporterUtils.h |