ezEngine Release 25.08
Loading...
Searching...
No Matches
ezAnimatedMeshAssetDocumentGenerator Class Reference
Inheritance diagram for ezAnimatedMeshAssetDocumentGenerator:

Public Member Functions

virtual void GetImportModes (ezStringView sAbsInputFile, ezDynamicArray< ezAssetDocumentGenerator::ImportMode > &out_modes) const override
 Used to fill out which import modes may be available for the given asset.
 
virtual ezStringView GetDocumentExtension () const override
 Returns the target asset document file extension.
 
- Public Member Functions inherited from ezMeshAssetDocumentGenerator
virtual ezStringView GetGeneratorGroup () const override
 Allows to merge the import modes of multiple generators in the UI in one group.
 
virtual ezStatus Generate (ezStringView sInputFileAbs, ezStringView sMode, ezDynamicArray< ezDocument * > &out_generatedDocuments) override
 Tells the generator to create a new asset document with the chosen mode.
 
- Public Member Functions inherited from ezAssetDocumentGenerator
ezStatus Import (ezStringView sInputFileAbs, ezStringView sMode, bool bOpenDocument)
 Imports the given file with the mode. Must be a mode that the generator supports.
 
bool SupportsFileType (ezStringView sFile) const
 Returns whether this generator supports the given file type for import.
 
- Public Member Functions inherited from ezReflectedClass
virtual const ezRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const ezRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T >
EZ_ALWAYS_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.
 

Protected Member Functions

virtual ezStatus ConfigureMeshDocument (ezStringView sInputFile, ezStringView sOutFile, ezModelImporter2::Importer *pImporter, ezArrayPtr< ezMaterialResourceSlot > materials, ezDynamicArray< ezDocument * > &out_generatedDocuments) override
 
- Protected Member Functions inherited from ezMeshAssetDocumentGenerator
 ezMeshAssetDocumentGenerator (bool bAnimMesh)
 
- Protected Member Functions inherited from ezAssetDocumentGenerator
void AddSupportedFileType (ezStringView sExtension)
 

Additional Inherited Members

- Static Public Member Functions inherited from ezAssetDocumentGenerator
static void GetSupportsFileTypes (ezSet< ezString > &out_extensions)
 Creates a list of all importable file extensions. Note that this is an expensive function so the the result should be cached.
 
static void ImportAssets ()
 Opens a file browse dialog to let the user choose which files to import.
 
static void ImportAssets (const ezDynamicArray< ezString > &filesToImport)
 Opens the "Asset Import" dialog to let the user choose how to import the given files.
 
static void CreateGenerators (ezHybridArray< ezAssetDocumentGenerator *, 16 > &out_generators)
 Instantiates all currently available generators.
 
static void DestroyGenerators (const ezHybridArray< ezAssetDocumentGenerator *, 16 > &generators)
 Destroys the previously instantiated generators.
 
- Static Public Member Functions inherited from ezNoBase
static const ezRTTIGetStaticRTTI ()
 
- Protected Attributes inherited from ezMeshAssetDocumentGenerator
bool m_bAnimatedMesh = false
 
bool m_bShowImportDlg = true
 
- Static Protected Attributes inherited from ezMeshAssetDocumentGenerator
static bool s_bReuseSkeleton = false
 
static bool s_bImportAllClips = false
 
static bool s_bUseSharedMaterials = false
 
static bool s_bCreateMaterials = true
 
static bool s_bAddLODs = false
 
static ezUInt8 s_uiNumLODs = 1
 
static ezUuid s_SharedSkeleton
 

Member Function Documentation

◆ ConfigureMeshDocument()

ezStatus ezAnimatedMeshAssetDocumentGenerator::ConfigureMeshDocument ( ezStringView  sInputFile,
ezStringView  sOutFile,
ezModelImporter2::Importer pImporter,
ezArrayPtr< ezMaterialResourceSlot materials,
ezDynamicArray< ezDocument * > &  out_generatedDocuments 
)
overrideprotectedvirtual

Reimplemented from ezMeshAssetDocumentGenerator.

◆ GetDocumentExtension()

virtual ezStringView ezAnimatedMeshAssetDocumentGenerator::GetDocumentExtension ( ) const
inlineoverridevirtual

Returns the target asset document file extension.

Reimplemented from ezMeshAssetDocumentGenerator.

◆ GetImportModes()

void ezAnimatedMeshAssetDocumentGenerator::GetImportModes ( ezStringView  sAbsInputFile,
ezDynamicArray< ezAssetDocumentGenerator::ImportMode > &  out_modes 
) const
overridevirtual

Used to fill out which import modes may be available for the given asset.

Note: sAbsInputFile may be empty, in this case it should fill out the array for "general purpose" import (any file of the supported types).

Reimplemented from ezMeshAssetDocumentGenerator.


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