Page 1 of 1

Animated Portrait

Posted: Mon Aug 21, 2017 5:15 pm
by thehazard
Hi,

In the documentation, you wrote that it's possible to add an animation as a portrait.
"You can also assign spritesheet images as portraits if you use a dialogue UI that supports animated images. Some of the Unity GUI dialogue UI prefabs support portrait images; all of these also support animated images."

Is there a more in depth explanation of how this could be done?
Would it be possible to switch each animations easily like how we can switch the portaits with [pic=#] tag?

Re: Animated Portrait

Posted: Mon Aug 21, 2017 7:56 pm
by Tony Li
Yes. I prefer to use Unity UI, since I can set up multiple animations in an Animator. The instructions are here: Unity UI Dialogue UI Animated Portraits

The example scene is in Examples / Unity UI Examples / Animated Portrait Example.

It's a little complicated to set up initially, but it provides a lot of flexibility. If you have any questions about setting it up, just let me know.