Mouse Pointer dissapears?

Announcements, support questions, and discussion for Quest Machine.
Post Reply
Hereder
Posts: 76
Joined: Mon Dec 21, 2020 2:53 am

Mouse Pointer dissapears?

Post by Hereder »

Hi!
Just bought Quest pack and trying to learn it in the DemoStage..
But as soon as I hit play and press the Got it, Let's Play-button. The mouse curses dissapears.
I noticed its the same in when I have the Dialogue System activated.
Any idea why this is?
Thanks!
User avatar
Tony Li
Posts: 22118
Joined: Thu Jul 18, 2013 1:27 pm

Re: Mouse Pointer dissapears?

Post by Tony Li »

Hi,

Inspect the Input Device Manager component. If you're using the Dialogue System, it will be on the Dialogue Manager GameObject. Otherwise it might be on its own GameObject as in QM's Demo scene. Set the Input Device dropdown to Mouse.

By default, the Input Device Manager assumes you're using a joystick/gamepad/keyboard (Input Device dropdown set to Joystick) and so it hides the mouse. At runtime, if you move the mouse or click a mouse button, it will detect that you're using the mouse and switch to mouse mode, showing the cursor. But if you want to start in mouse mode from the beginning, set the Input Device dropdown.
Hereder
Posts: 76
Joined: Mon Dec 21, 2020 2:53 am

Re: Mouse Pointer dissapears?

Post by Hereder »

Thanks!
I tried to move the Demo scene into my own scene and then I deleted the Player from the Demo scene.
What exacly is it that triggers the Popup thing near the NPC when I walk near it?
It wont pop up with my own Player (Tag Player)
Is it something inside the Controller of the Player (From the Demo Scene) that I need to copy/paste to my own Player in order to make it work?
The reason i ask is cuz I find it difficult to understand tutorials, I rather use what you guys have done and then costumize from there until I learn how it all works...
Speaking of tutorials, are there any Youtube ones? Like you guys had for the Dialouge system?
Cheers!
User avatar
Tony Li
Posts: 22118
Joined: Thu Jul 18, 2013 1:27 pm

Re: Mouse Pointer dissapears?

Post by Tony Li »

Hi,

The interaction pop-up in Quest Machine's Demo scene is a small custom script for the demo. You probably won't want to use it for your own project. If you're using the Dialogue System, too, you could use the Dialogue System's interaction system. Add a Usable component to your Quest Giver NPC, and configure its OnUse() event to call QuestGiver.StartDialogueWithPlayer.

There is a whole set of tutorial videos for Quest Machine: Tutorials Videos
Hereder
Posts: 76
Joined: Mon Dec 21, 2020 2:53 am

Re: Mouse Pointer dissapears?

Post by Hereder »

Great! Thanks!
User avatar
Tony Li
Posts: 22118
Joined: Thu Jul 18, 2013 1:27 pm

Re: Mouse Pointer dissapears?

Post by Tony Li »

Happy to help!
Hereder
Posts: 76
Joined: Mon Dec 21, 2020 2:53 am

Re: Mouse Pointer dissapears?

Post by Hereder »

It was a problem I ran into before :S
I replaced my own InputMaster inside the EventSystem -> Action Asset field...
Works now so, thanks for pointing me in the right direction...
One more thing,
Im watching the tutorials now and you guys mention I can use SendMessage if I want to write my own script:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using PixelCrushers.MessageSystem.SendMessage; <---- THIS

But SendMessage is underlined in red. Has it changed name?
User avatar
Tony Li
Posts: 22118
Joined: Thu Jul 18, 2013 1:27 pm

Re: Mouse Pointer dissapears?

Post by Tony Li »

Try something like this:

Code: Select all

using PixelCrushers; // Include the PixelCrushers namespace.
...
void SomeMethod()
{
    MessageSystem.SendMessage(this, "Explored", "Waterfall");
}
API Reference: MessageSystem
Hereder
Posts: 76
Joined: Mon Dec 21, 2020 2:53 am

Re: Mouse Pointer dissapears?

Post by Hereder »

Ah, I see"! Thanks!
Post Reply