Class FBXImporter
Tge FBX importer class.
Implements
Inherited Members
Namespace: Evergine.Assets.Importers
Assembly: Evergine.Assets.dll
Syntax
public class FBXImporter : GLTFImporter, IAssetImporter
Fields
GltfExtension
The Gltf extension.
Declaration
public const string GltfExtension = ".glb"
Field Value
Type | Description |
---|---|
string |
GltfModelCache
The gltf cache location.
Declaration
public const string GltfModelCache = "Cache/Gltf"
Field Value
Type | Description |
---|---|
string |
Properties
Extensions
Gets the importer extension.
Declaration
public override string[] Extensions { get; }
Property Value
Type | Description |
---|---|
string[] |
Overrides
Methods
ConvertToGLTF()
Gets a value indicating whether the asset needs to be converted to GLTF before.
Declaration
protected Stream ConvertToGLTF()
Returns
Type | Description |
---|---|
Stream | The FBX stream. |
ConvertToGLTF(string, string)
Convert this file to GLTF.
Declaration
public void ConvertToGLTF(string assetPath, string gltfPath)
Parameters
GenerateAdditionalAssets(Stream, ModelSource)
Indicates if this assets requires additional assets.
Declaration
public override bool GenerateAdditionalAssets(Stream stream, ModelSource resource)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The asset stream. |
Model |
resource | The current resource. |
Returns
Type | Description |
---|---|
bool | If the asset require additional assets. |
Overrides
ImportData(Stream, ModelSource, bool)
Import the asset data.
Declaration
public override void ImportData(Stream stream, ModelSource resource, bool rawData)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream. |
Model |
resource | The output data. |
bool | rawData |
Overrides
ImportHeader(Stream, out ModelSource)
Import the asset header.
Declaration
public override void ImportHeader(Stream stream, out ModelSource resource)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream. |
Model |
resource | The output header. |