- Modifié
bone local override
Hello.
I have a question about the bone local override script. Is this bone local override script the one used to modify the transform value of bones in Unity engine?
I wonder when and when to use this script.
I'm studying the examples you provided late, and it's interesting.
Do you have any thoughts on making and distributing more of these fun scripts? :think:
gunspike a écritIs this bone local override script the one used to modify the transform value of bones in Unity engine?
This script is just a simple example script which can be used to override the local (relative to it's parent) bone rotation or position values by a fixed value, which can be set as an Inspector property. This script is only a simple example, you will most likely not use it directly. It can serve as an example for your own scripts, on how your can override local bone rotation or position.
Regarding Transforms: this is not related to Unity Transforms. If you want to use Unity Transforms to override bone rotation or position, please see the SkeletonUtilityBone
component (you need to generate a hierarchy of SkeletonUtilityBones
as described in the documentation).
spine-unity Runtime Documentation: SkeletonUtilityBone
Note that copying Transform rotation or position to local Bone rotation or position is rarely desired, as you will want to set the "world space" rotation or position of the Bone instead.
I don't understand the answer, but thank you for replying.
I will study a little more and come back.
Always make great developments. thank you :grinteeth:
Sorry to hear that my reply was not clear enough. Anyway it will make perfect sense to get familiar with the runtime more. I would recommend having a look this documentation section:
spine-unity Runtime Documentation: Utility Components
These components are the main spine-unity utility components which you might need sooner or later. These are intended to be used out of the box in your projects, without needing to modify them.
The example components (everything in Spine Examples/
) on the other hand are more intended as an example on how some things can be done, but you might not find them useful for your project without modifying it.