jabuwu / bevy_spine

A Bevy plugin for Spine
https://docs.rs/bevy_spine
Other
84 stars 5 forks source link

Convenience: attach Name components #12

Closed brandon-reinhart closed 10 months ago

brandon-reinhart commented 10 months ago

You could attach a Name component to your bones, etc. For example:

    commands.entity(spine_bone_entity).insert(Name::new(format!(
                "spine_bone ({:?})",
                spine_bone_entity
            )));

Tools that display an entity can use the Name to differentiate them. This makes examining entities during debugging using tools such as bevy-inspector-egui much easier.

Note that adding the entity id to the name is helpful, as shown above.