Questions about animation in portrait

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
losemarins
Posts: 19
Joined: Tue Feb 23, 2021 10:39 pm

Questions about animation in portrait

Post by losemarins »

hi tony
thanks to your kind replay, the development is going well.
I recently found an eset called AnyPortrait.
url : https://assetstore.unity.com/packages/t ... 84#reviews

Do you know about this asset?

I bought it to use instead of a Spine because there was a function needed for my project.
This set supports the use of animation controllers and animation clips.
However, the animation target is GameObject.
In the dialogue system, the portrait of the actor can only be set as a sprite.
Is there any way I can use anyportrait asset in the dialogue system?
User avatar
Tony Li
Posts: 22165
Joined: Thu Jul 18, 2013 1:27 pm

Re: Questions about animation in portrait

Post by Tony Li »

Hi,

Sure! The Spine integration package is included in the Dialogue System, which will give you a strong head start. You can copy its scripts and modify it to work with AnyPortrait instead. It should work very similarly. There are two main scripts:
  • SpineDialogueActor: Associates a Spine GameObject with a Dialogue System actor. You can create a similar AnyPortraitDialogueActor script.
  • SpineSubtitlePanel: Replaces StandardUISubtitlePanel, overriding the ShowSubtitle method to show the Spine GameObject. You can create a similar AnyPortraitSubtitlePanel script.
Post Reply