Animated Portrait

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
thehazard
Posts: 27
Joined: Sun Jul 23, 2017 9:56 am

Animated Portrait

Post 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?
User avatar
Tony Li
Posts: 22062
Joined: Thu Jul 18, 2013 1:27 pm

Re: Animated Portrait

Post 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.
Post Reply