Class FBXFileLoader
Implements
Constructors
constructor
-
Creates a new FBX loader.
Parameters
- options: FBXFileLoaderOptions = {}
Options controlling FBX loading behavior
Returns FBXFileLoader
- options: FBXFileLoaderOptions = {}
Properties
Readonlyextensions
Defines the extension the plugin is able to load.
Readonlyname
Defines the name of the plugin.
Methods
create Plugin
-
Creates an FBX loader plugin instance with options from SceneLoader.
Parameters
- options: SceneLoaderPluginOptions
Scene loader plugin options
Returns ISceneLoaderPluginAsync
The configured FBX loader
- options: SceneLoaderPluginOptions
import Mesh Async
-
importMeshAsync(
meshesNames: string | readonly string[] | null | undefined,
scene: Scene,
data: unknown,
rootUrl: string,
_onProgress?: (event: ISceneLoaderProgressEvent) => void,
_fileName?: string,
): Promise<ISceneLoaderAsyncResult>Imports meshes from an FBX file and adds them to the scene.
Parameters
- meshesNames: string | readonly string[] | null | undefined
A string or array of mesh names to import, or null/undefined to import all meshes
- scene: Scene
The scene to add imported meshes to
- data: unknown
The FBX data to load
- rootUrl: string
Root URL used to resolve external resources
Optional_onProgress: (event: ISceneLoaderProgressEvent) => voidCallback called while the file is loading
Optional_fileName: stringName of the file being loaded
Returns Promise<ISceneLoaderAsyncResult>
A promise containing the loaded meshes, particle systems, skeletons, animation groups, transform nodes, geometries, and lights
- meshesNames: string | readonly string[] | null | undefined
load Asset Container Async
-
loadAssetContainerAsync(
scene: Scene,
data: unknown,
rootUrl: string,
_onProgress?: (event: ISceneLoaderProgressEvent) => void,
_fileName?: string,
): Promise<AssetContainer>Loads all FBX content into an asset container.
Parameters
- scene: Scene
The scene used to create the asset container
- data: unknown
The FBX data to load
- rootUrl: string
Root URL used to resolve external resources
Optional_onProgress: (event: ISceneLoaderProgressEvent) => voidCallback called while the file is loading
Optional_fileName: stringName of the file being loaded
Returns Promise<AssetContainer>
A promise containing the loaded asset container
- scene: Scene
load Async
-
loadAsync(
scene: Scene,
data: unknown,
rootUrl: string,
_onProgress?: (event: ISceneLoaderProgressEvent) => void,
_fileName?: string,
): Promise<void>Loads all FBX content into the scene.
Parameters
- scene: Scene
The scene to load the FBX content into
- data: unknown
The FBX data to load
- rootUrl: string
Root URL used to resolve external resources
Optional_onProgress: (event: ISceneLoaderProgressEvent) => voidCallback called while the file is loading
Optional_fileName: stringName of the file being loaded
Returns Promise<void>
A promise that resolves when loading is complete
- scene: Scene
FBX file loader plugin for Babylon.js. Pure TypeScript implementation — no Autodesk FBX SDK dependency.