docs.rs failed to build bevy_gltf_trait-0.4.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_gltf_trait-0.3.0
This is a fork of bevy /crates/bevy_gltf
, that doesn't change any functionalities, but provides several possibilities to customize
the conversion between gltf and bevy interns on load
using the trait GltfTrait
.
Trait Features
- set the extensions
default: &["gltf", "glb"]
- Material:
- change the
Material
used - or just edit the
StandardMaterial
s
- change the
- Meshes:
- edit any
Mesh
- edit their
EntityWorldMut
(similar toEntityCommands
) - edit the
Transform
andEntityWorldMut
of their parent
- edit any
- Lights:
- edit their
SpotLight
,PointLight
orDirectionalLight
components - edit their
EntityWorldMut
- edit the
Transform
andEntityWorldMut
of their parent
- edit their
- edit the
App
Notes
- If you want to insert components through the trait and they are foreign to bevy_gltf:
- Make sure to use
on_app
to.register_type()
them
- Make sure to use
- the provided gltf structs make it possible to react to custom gltf properties
Versions
Bevy | This |
---|---|
0.15 | 0.2 |
0.14 | 0.1 |
Example
The original way of adding the plugin changes to:
..and can be modified with the trait to either replace or extend (using different extensions) scene imports.
;