UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FDatasmithSceneUtils Class Reference

#include <DatasmithUtils.h>

Public Types

using TActorHierarchy = TArray< TSharedPtr< class IDatasmithActorElement >, TInlineAllocator< 8 > >
 

Static Public Member Functions

static UE_API TArray< TSharedPtr< class IDatasmithCameraActorElement > > GetAllCameraActorsFromScene (const TSharedPtr< class IDatasmithScene > &Scene)
 
static UE_API TArray< TSharedPtr< class IDatasmithLightActorElement > > GetAllLightActorsFromScene (const TSharedPtr< class IDatasmithScene > &Scene)
 
static UE_API TArray< TSharedPtr< class IDatasmithMeshActorElement > > GetAllMeshActorsFromScene (const TSharedPtr< class IDatasmithScene > &Scene)
 
static UE_API TArray< TSharedPtr< class IDatasmithCustomActorElement > > GetAllCustomActorsFromScene (const TSharedPtr< class IDatasmithScene > &Scene)
 
static UE_API bool FindActorHierarchy (const IDatasmithScene *Scene, const TSharedPtr< IDatasmithActorElement > &ToFind, TActorHierarchy &OutHierarchy)
 
static UE_API bool IsMaterialIDUsedInScene (const TSharedPtr< class IDatasmithScene > &Scene, const TSharedPtr< class IDatasmithMaterialIDElement > &MaterialElement)
 
static UE_API bool IsPostProcessUsedInScene (const TSharedPtr< class IDatasmithScene > &Scene, const TSharedPtr< class IDatasmithPostProcessElement > &PostProcessElement)
 
static UE_API void CleanUpScene (TSharedRef< class IDatasmithScene > Scene, bool bRemoveUnused=false)
 

Member Typedef Documentation

◆ TActorHierarchy

Member Function Documentation

◆ CleanUpScene()

void FDatasmithSceneUtils::CleanUpScene ( TSharedRef< class IDatasmithScene Scene,
bool  bRemoveUnused = false 
)
static

Fixes all missing references, remove all unused meshes, materials, textures, etc

Parameters
SceneScene to perform the cleanup on
bRemoveUnusedIndicates if the cleanup includes the removal of unused assets

◆ FindActorHierarchy()

bool FDatasmithSceneUtils::FindActorHierarchy ( const IDatasmithScene Scene,
const TSharedPtr< IDatasmithActorElement > &  ToFind,
TActorHierarchy OutHierarchy 
)
static

◆ GetAllCameraActorsFromScene()

TArray< TSharedPtr< IDatasmithCameraActorElement > > FDatasmithSceneUtils::GetAllCameraActorsFromScene ( const TSharedPtr< class IDatasmithScene > &  Scene)
static

◆ GetAllCustomActorsFromScene()

TArray< TSharedPtr< IDatasmithCustomActorElement > > FDatasmithSceneUtils::GetAllCustomActorsFromScene ( const TSharedPtr< class IDatasmithScene > &  Scene)
static

◆ GetAllLightActorsFromScene()

TArray< TSharedPtr< IDatasmithLightActorElement > > FDatasmithSceneUtils::GetAllLightActorsFromScene ( const TSharedPtr< class IDatasmithScene > &  Scene)
static

◆ GetAllMeshActorsFromScene()

TArray< TSharedPtr< IDatasmithMeshActorElement > > FDatasmithSceneUtils::GetAllMeshActorsFromScene ( const TSharedPtr< class IDatasmithScene > &  Scene)
static

◆ IsMaterialIDUsedInScene()

bool FDatasmithSceneUtils::IsMaterialIDUsedInScene ( const TSharedPtr< class IDatasmithScene > &  Scene,
const TSharedPtr< class IDatasmithMaterialIDElement > &  MaterialElement 
)
static

◆ IsPostProcessUsedInScene()

bool FDatasmithSceneUtils::IsPostProcessUsedInScene ( const TSharedPtr< class IDatasmithScene > &  Scene,
const TSharedPtr< class IDatasmithPostProcessElement > &  PostProcessElement 
)
static

The documentation for this class was generated from the following files: