Page 1 of 1
Watches Tab Empty?
Posted: Thu Mar 17, 2022 5:40 pm
by Unrighteous
Hello,
I've just noticed that my "Watches" tab is empty when I enter play mode. I remember there used to be options here; have they been moved elsewhere? or am I experiencing a different issue? I've tried resizing the window, re-importing the dialogue system, and deleting/re-creating my Library folder, all to no avail.
- Watches.PNG (11.07 KiB) Viewed 427 times
Any help is greatly appreciated.
Thank you.
Re: Watches Tab Empty?
Posted: Thu Mar 17, 2022 6:53 pm
by Tony Li
Hi,
What errors or warnings are in the Console window?
Re: Watches Tab Empty?
Posted: Thu Mar 17, 2022 7:23 pm
by Unrighteous
Hey,
No errors or warnings, but I did figure out the issue.
My dialogue manager was inactive by default to keep the UI out of the way in the scene view, and I was activating it on the first frame of the game. I now realize this was a bad idea, as it was this that was causing the watch tab to be blank.
Instead, I'll keep the dialogue canvas inactive, and activate it at runtime.
Problem solved, thanks for the reply!
Take care!
Re: Watches Tab Empty?
Posted: Thu Mar 17, 2022 8:47 pm
by Tony Li
Hi,
Thanks for explaining your solution. It could be helpful to others in the future.
BTW, there are some other ways to keep your UI out of the way in the scene view without having to do anything special at runtime:
- If your dialogue UI is an instance inside the Dialogue Manager's Canvas (or any canvas for that matter), deactivate its Dialogue Panel and Alert Panel child GameObjects. The Dialogue System will activate them as needed at runtime. You can do the same with the quest log window if it's an instance.
- Or make those UIs into prefabs. Assign the dialogue UI prefab to the Dialogue Manager's Dialogue UI field. Assign your other prefabs (quest log window, etc.), to the Instantiate Prefabs component.
Re: Watches Tab Empty?
Posted: Thu Mar 17, 2022 9:28 pm
by Unrighteous
This is actually really great to know. I think I will take your suggestion to make it into a prefab. I won't have to mess with anything else that way.
Thanks again!
Re: Watches Tab Empty?
Posted: Thu Mar 17, 2022 9:52 pm
by Tony Li
Glad to help!