Quest HUD Text Animation

Announcements, support questions, and discussion for Quest Machine.
Post Reply
cptscrimshaw
Posts: 113
Joined: Sun Sep 20, 2020 8:21 pm

Quest HUD Text Animation

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

Re: Quest HUD Text Animation

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