HUD disappears in Play mode

Announcements, support questions, and discussion for Quest Machine.
Post Reply
JimInNH
Posts: 5
Joined: Thu Apr 07, 2022 7:52 pm

HUD disappears in Play mode

Post by JimInNH »

Initial question: is there any reason that Quest Machine couldn't be added to the Unity Third Person Controller playground scene? I've been following tutorial #1 - Scene Setup, but instead of using the scene and characters in the tutorial, I'm adding QM to the Third Person Controller Playground scene. I should mention that all worked fine when I followed the tutorial to the letter with provided assets.
Thank you-Jim
User avatar
Tony Li
Posts: 21928
Joined: Thu Jul 18, 2013 1:27 pm

Re: HUD disappears in Play mode

Post by Tony Li »

Hi,

Quest Machine works just fine with Unity's Third Person Controller.

Did you have a question about the HUD? It stays hidden until it has content to show (i.e., one or more active, tracked quests).
JimInNH
Posts: 5
Joined: Thu Apr 07, 2022 7:52 pm

Re: HUD disappears in Play mode

Post by JimInNH »

I think what throws me is that, when following the QM-Tutorial 1:Scene Setup video, at the 6:16 mark the HUD becomes visible in the Scene window (in the video) when the "Journal Button" is added. That doesn't happen when I do the same in Unity on my machine.
Jim
JimInNH
Posts: 5
Joined: Thu Apr 07, 2022 7:52 pm

Re: HUD disappears in Play mode

Post by JimInNH »

Good news - finished the first tutorial and the journal opens when the player approaches the quest giver. I anticipate that things will continue to be fine moving into tutorial 2. One thing I notice that is that a mouse click on the CLOSE button in the journal doesn't work right away. Given that I am directing the third party character/player using the mouse for direction and WASD for movement, I need to use the Tab key a few times to give the CLOSE button focus.
User avatar
Tony Li
Posts: 21928
Joined: Thu Jul 18, 2013 1:27 pm

Re: HUD disappears in Play mode

Post by Tony Li »

Hmm, clicking on the close button should close the UI regardless of which UI button has focus. Maybe the Tab key is doing something else with your controller.
JimInNH
Posts: 5
Joined: Thu Apr 07, 2022 7:52 pm

Re: HUD disappears in Play mode

Post by JimInNH »

Re: close button in accepting a quest

Is there a way to set the Accept button as the default state? Because the third person controller uses the mouse and the keyboard to move the player, it's as if I can't accept the quest from the quest giver. The buttons in the HUD don't respond to the mouse at all.
User avatar
Tony Li
Posts: 21928
Joined: Thu Jul 18, 2013 1:27 pm

Re: HUD disappears in Play mode

Post by Tony Li »

Hi,

Let's make sure we're talking about the same UIs. These are the types of UIs in Quest Machine:

qmUIs.png
qmUIs.png (477.47 KiB) Viewed 823 times

I'm going to assume you're talking about the dialogue UI. If so, make sure your scene has an EventSystem component. This will allow Unity UI to recognize mouse clicks.
Post Reply