- Uređeno
disable visualization of parts
Hello..
I'm having a doubt.. in this video when I hit the chicken, the chicken will get an "A button" above.
Is there any way I can disable that part (A button) at runtime? My idea is that when I pressed the button on the keyboard then this button will turn off in the animation.
Thanks
24 Nov 2015, 20:48
I have try with submesh renders but without success, I don't know if that's the correct path..
For some reason I cant get the A Button bone/slot. Maybe there is a bug in "submesh renders"?... here is a video..
(1) Submesh separators are working as intended, though it could probably have a note somewhere.
The selected submesh separator slot gets included with the lower set, which in this case means it will include the button.
You probably want the slot right below the button slot.
For best/unambiguous results, add an empty slot to the skeleton and use that empty slot to divide the mesh into submeshes.
(2)
You shouldn't be using submesh separators for this.
If you want to make a slot empty, get the slot, and set its attachment to null.
mySkeletonAnimation.skeleton.FindSlot("mySlot").Attachment = null;
(3)
Why does the button image have to be part of the Spine skeleton?
Can't you just make it its own Unity GameObject with a SpriteRenderer?
Thanks you Pharan,
(3) Is because I want the "Button A" have an animation color..
You can easily animate color in Unity.
You could also make it a separate skeleton.
I just expect a lot of unnecessary complication by putting the button in the same skeleton. But whatever. Good luck!
yes, you're right, I think I will consider doing as you suggest.
thank you very much Pharan