I want to play the animation of UI's Spine Animations.(This UI is not a subtitle panel.)
when I put it into the game with normal Game Object, the SpineAnimation ( ); command works well. However, It does not work when it's on UI(with the SkeletonGraphic(Unity UI Canvas) component).
How can I play It's animations with the SpineAnimation(); command?
How can I Play my UI's Spine animations with Sequence command?
How can I Play my UI's Spine animations with Sequence command?
- Attachments
-
- WhatComponentShouldIAdd.PNG (53.91 KiB) Viewed 2375 times
Re: How can I Play my UI's Spine animations with Sequence command?
Hi,
I'll look into extending the SpineAnimation() sequencer command so it can also work with SkeletonGraphics.
I'll look into extending the SpineAnimation() sequencer command so it can also work with SkeletonGraphics.
Re: How can I Play my UI's Spine animations with Sequence command?
Hi,
This updated package (which will also be in version 2.2.31) extends the SpineReferences component so you can assign a SkeletonGraphic and use it with the SpineAnimation() sequencer command.
DS_SpineSupport_2022-08-30.unitypackage
This updated package (which will also be in version 2.2.31) extends the SpineReferences component so you can assign a SkeletonGraphic and use it with the SpineAnimation() sequencer command.
DS_SpineSupport_2022-08-30.unitypackage
Re: How can I Play my UI's Spine animations with Sequence command?
Woooooow.... It works!!
Thank you always for your answer!
Thank you always for your answer!
Re: How can I Play my UI's Spine animations with Sequence command?
And Hi again,
Can I play the Spine Animations of the UI(Skeleton Graphic component contained)with the Skeleton Mechanim and Animation Controller?
I tried with AnimationPlay(); and AnimationTrigger(); Sequence commands, but they didn't work.
My problem is already solved, but I am curious about that.
Can I play the Spine Animations of the UI(Skeleton Graphic component contained)with the Skeleton Mechanim and Animation Controller?
I tried with AnimationPlay(); and AnimationTrigger(); Sequence commands, but they didn't work.
My problem is already solved, but I am curious about that.
Re: How can I Play my UI's Spine animations with Sequence command?
If your Spine character uses a regular Mecanim animator controller, you should be able to use AnimatorPlay(), AnimatorPlayWait(), AnimatorTrigger(), etc., on it.
Re: How can I Play my UI's Spine animations with Sequence command?
Ah, When I attach the "Skeleton Graphic component" and "Animator component" on UI game object, and place it on the Canvas, then the AnimationPlay();... etc. commands not works.
It works when I remove "Skeleton Graphic component" and move it to out of the Canvas.
However, the Animation Controller appears that the Animation is playing(Please look at the image).
It works when I remove "Skeleton Graphic component" and move it to out of the Canvas.
However, the Animation Controller appears that the Animation is playing(Please look at the image).
- Attachments
-
- example02.JPG (71.6 KiB) Viewed 2341 times
-
- example01.JPG (49.13 KiB) Viewed 2341 times
Re: How can I Play my UI's Spine animations with Sequence command?
That makes sense. SkeletonMecanim is the version of the Spine character that can be controlled by a Mecanim Animator. You wouldn't also want a SkeletonGraphic version on the same GameObject.