TL;DR: Import this patch: QM_AlertUIPatch_2019-10-10.unitypackage and tick the alert UI's "Leave Last Content Visible During Hide" checkbox.
I understand what you're saying now.nicmar wrote: ↑Thu Oct 10, 2019 5:30 amThanks, I found that setting. But no matter how I do, it still seems that the text disappears (without transition) at the same time the dotween starts. I'd like for it to stay in the dialog box, so i can tween the box, with the text still showing inside. You can see my video above for what I mean.
The UnityUIQuestAlertUI script has a ShowAlert() method. When your script calls ShowAlert(content), it does this:
1. If the panel is not open yet, it opens it by calling the Show() method. The Show() method runs your OnOpen() event.
2. It adds content to the list of things it's displaying. (And displays it of course.)
3. It starts the coroutine TimedDespawn() to hide and remove content after a duration determined by the script's Duration values.
4. In TimedDespawn, if removing content results in no more content being displayed, it calls the panel's Hide() method. The Hide() method runs your OnClose() event.
I was going to recommend overriding TimedDespawn() so it doesn't remove the last content item, but it occurred to me that I should just add this as an option. If you import the patch below, the quest alert UI will have a new checkbox "Leave Last Content Visible During Hide". Just tick the checkbox.
QM_AlertUIPatch_2019-10-10.unitypackage
For the Hide animation state, you can make a new animation clip that does nothing for the same number of frames as your DOTween action. Assign this clip to the Hide animation state. This will give your DOTWeen action enough time to finish before the UnityUIQuestAlertUI sees that the Hide animation state is done and deactivates the panel's GameObject.nicmar wrote: ↑Thu Oct 10, 2019 5:30 amI'm trying to fiddle with the Expand animation, which seems to be played in reverse when hiding. The Hidden animation doesn't seem to do anything. I tried changing the length of the animation which you mentioned, and I have a keyframe for an item which actually doesn't change or do anything, but I don't see any difference no matter the duration of the Expand animation.