docs.rs failed to build bevy_ufbx-0.18.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
bevy_ufbx-0.1.0
bevy_ufbx
FBX asset loader for Bevy powered by ufbx.
Bevy compatibility
| bevy | bevy_ufbx |
|---|---|
| 0.18 | 0.18 |
| 0.17 | 0.17 |
Installation
[]
= "0.18"
= "0.18"
Quick start
use *;
use FbxPlugin;
Loading with custom settings
use ;
FbxLoaderSettings fields
| Field | Type | Default | Description |
|---|---|---|---|
load_meshes |
RenderAssetUsages |
RenderAssetUsages::default() |
Which worlds the mesh is available in |
load_materials |
RenderAssetUsages |
RenderAssetUsages::default() |
Which worlds the material is available in |
load_cameras |
bool |
true |
Import cameras from the FBX |
load_lights |
bool |
true |
Import lights from the FBX |
include_source |
bool |
false |
Keep raw bytes in the loaded asset |
convert_coordinates |
bool |
false |
Remap axes to Bevy's right-handed Y-up space |
Asset labels
Individual sub-assets can be addressed with #Label path suffixes:
| Label | Type | Description |
|---|---|---|
Scene{N} |
Scene |
Scene hierarchy (N = scene index) |
Mesh{N} |
Mesh |
Triangulated mesh |
Material{N} |
StandardMaterial |
PBR material |
Node{N} |
FbxNode |
Transform node |
Skin{N} |
FbxSkin |
Skeletal skin |
DefaultMaterial |
StandardMaterial |
Fallback material when none is present |
let scene = asset_server.;
let mesh = asset_server.;
let material = asset_server.;
Supported features
- Triangle meshes with positions, normals, and UVs
- Multi-material meshes (face groups per material)
- PBR materials (base color, metallic, roughness, normal, emission, AO)
- Texture mapping, including
.fbmembedded texture folders - Skeletal skinning data (bone weights / bind poses)
- Scene hierarchy (node transforms)
- Directional, point, and spot lights
Limitations
- Animation curves are parsed but not yet forwarded to Bevy's animation system
- Cameras are not imported into Bevy camera components
- NURBS and subdivision surfaces are not supported (ufbx triangulates on load)
Example
License
Licensed under either of MIT or Apache 2.0 at your option.