- Düzenlendi
[Feature Request] Event emitted by bone
I'm working on integrating effects( e.g particle emitter ) into my spine characters.
Current event system only supports "global" event, so I have to manually locate the bone and specify effect type and parameters in code.
It would be convenient if spine allows emitting event from specified bone.
This could be useful not only for effects, but also some other dynamic setting like physics.
Thanks!
Is it not an option to keep a reference to the bones where the effect and event applies?
Are you actually recommending adding the ability to label event keys with bones? Can you elaborate your use for it?
(I'm not one of the developers. I'm just curious about what the feature is for and if it can't be done cleaner already.)
Pharan yazdıIs it not an option to keep a reference to the bones where the effect and event applies?
That's what I'm doing at the moment. But It must be done in the code or a separated config file, if you have a lot of character specified effects, this could be quite some work for the coder.
If you can emit the event from bones, the workflow can be more data-driven and streamlined: the coder just need to maintain an effect list, and the artist can setup effects just inside spine editor without coder's help.
It's not a must-have, but would be helpful for collaboration.
Couldn't you put the bone name into the event string field? Then at runtime you can look up what bone the event is for.