Page 1 of 1

Quest HUD Text Animation

Posted: Fri Feb 25, 2022 6:43 pm
by cptscrimshaw
Hi Tony,

I'm looking to implement a simple animation on the Quest HUD when node states change (e.g., when a node changes to True, it disappears from the HUD with an animation, or when a node changes to Active it animates in). I was going to create a custom version of the UnityUIQuestHUD class, but I wanted to check if there was a simpler/built-in way to add this functionality already. I didn't see anything in the code or on the forums about it, but I definitely could have missed it.

Thanks!

Re: Quest HUD Text Animation

Posted: Fri Feb 25, 2022 7:13 pm
by Tony Li
Hi,

I suggest making a subclass of UnityUIQuestHUD and overriding the RefreshNow() method.

The current method calls MakeVisible() (still do that), then clears the currentContentManager and adds new content for each tracked quest.

Your overridden method can call MakeVisible() and, instead of just outright clearing currentContentManager, animate any new or outgoing content.