Hide is not triggered on UIPanel
Re: Hide is not triggered on UIPanel
I'll post a notification here.
Re: Hide is not triggered on UIPanel
Here is the patch:
DS_OverrideDialogueUIPatch_2020-11-25.unitypackage
This change will also be in version 2.2.14.
DS_OverrideDialogueUIPatch_2020-11-25.unitypackage
This change will also be in version 2.2.14.
Re: Hide is not triggered on UIPanel
Does this also have the Override Display Setting residual on "Duplicate Conversation"?
Re: Hide is not triggered on UIPanel
I think Hide is now working perfectly but Show is called twice.
Once it is instantiated for the first time and also when the conversation start?
Once it is instantiated for the first time and also when the conversation start?
Re: Hide is not triggered on UIPanel
Nothing changed with instantiation. Make sure your UI's Animator doesn't try to play the Show animation as soon as it starts. For an example, see the Canvas Group Animator Controller. It's initial state is called Start. This state instantly keeps the panel hidden.
I don't understand. Would you please explain?
Re: Hide is not triggered on UIPanel
I meant, - "duplicate conversation" does not duplicate the Override Display Setting for the specific conversation. You've said that you will include it to duplicate the Override Display Setting for the next patch. I was curious if it is coming with the next patch.I don't understand. Would you please explain?
For the animation controller- I will check now
Re: Hide is not triggered on UIPanel
Here is the prefab of the SMS
I am using "SMS_Dialogue_Panel"'s Animator to control is CanvasGroup and position for Show/Hide animation.
Re: Hide is not triggered on UIPanel
Yes. It will be in the next version.fkkcloud wrote: ↑Thu Nov 26, 2020 11:13 amI meant, - "duplicate conversation" does not duplicate the Override Display Setting for the specific conversation. You've said that you will include it to duplicate the Override Display Setting for the next patch. I was curious if it is coming with the next patch.
No, I mean make sure your animator controller's Default State (the state that is orange) keeps the dialogue UI hidden. The basic SMS Dialogue UI doesn't have an animator on the dialogue panel. But, for example, this is the animator controller on the Basic Standard Dialogue UI:
The "Start" state plays an animation clip called "Hidden" that immediately sets the Canvas Group's Alpha to zero.
When the Show trigger is set, the animator transitions to the "Show" state, which gradually increases the Alpha to 1.
Re: Hide is not triggered on UIPanel
Yes, I do have Default Anim State with only 1 frame animation that makes the canvas groups alpha 0.
However, literally, the "Show" trigger was triggered since the "Show" animation is played. Then it plays the "Show" conversation again as it starts the conversation.
What I have noticed is that, as I instantiate the Actor who overrides dialogue UI (SMS) in the scene (which I do when I load a scene), it creates the instance of the SMS dialogue UI prefab. Somehow it calls its "Show" without start me having it start the conversation. (I am starting a conversation - with out the Actor who override dialogue UI (SMS) though)
Is there an option/checkbox/flag I am not doing properly?
However, literally, the "Show" trigger was triggered since the "Show" animation is played. Then it plays the "Show" conversation again as it starts the conversation.
What I have noticed is that, as I instantiate the Actor who overrides dialogue UI (SMS) in the scene (which I do when I load a scene), it creates the instance of the SMS dialogue UI prefab. Somehow it calls its "Show" without start me having it start the conversation. (I am starting a conversation - with out the Actor who override dialogue UI (SMS) though)
Is there an option/checkbox/flag I am not doing properly?
Re: Hide is not triggered on UIPanel
Hi,
It shouldn't set the Show trigger until a conversation starts and the panel's Open() method is called. Maybe in your animator controller the Show trigger is already ticked at design time?
It shouldn't set the Show trigger until a conversation starts and the panel's Open() method is called. Maybe in your animator controller the Show trigger is already ticked at design time?