Page 1 of 1

Mouse Pointer dissapears?

Posted: Mon Apr 03, 2023 3:26 am
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!

Re: Mouse Pointer dissapears?

Posted: Mon Apr 03, 2023 8:24 am
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.

Re: Mouse Pointer dissapears?

Posted: Mon Apr 03, 2023 9:42 pm
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!

Re: Mouse Pointer dissapears?

Posted: Mon Apr 03, 2023 10:20 pm
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

Re: Mouse Pointer dissapears?

Posted: Tue Apr 04, 2023 12:05 am
by Hereder
Great! Thanks!

Re: Mouse Pointer dissapears?

Posted: Tue Apr 04, 2023 8:34 am
by Tony Li
Happy to help!

Re: Mouse Pointer dissapears?

Posted: Tue Apr 04, 2023 11:33 pm
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?

Re: Mouse Pointer dissapears?

Posted: Wed Apr 05, 2023 11:40 am
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

Re: Mouse Pointer dissapears?

Posted: Thu Apr 06, 2023 6:49 pm
by Hereder
Ah, I see"! Thanks!