Cursor and camera solid

When I play my game and I jump to a menu I can’t see my mouse, I know my mouse is there but I have a feeling that my mouse hides behind the solid color of camera you know. because when I choose skybox I can see my mouse.

Does someone how to fix to keep camera on solid color and see your mouse on menu.

That is unlikely. The default cursor should be above everything. Is this a custom created cursor?

no just normale.

In that case, is there any part of your script which affects the visibility or lockstate of the cursor?

I use the standard asset 3th person controller, and it got a code that when you press “ESC” you see cursor on the screen.
I don’t know if that could be a reason?

When you click ‘esc’ do you see your cursor? :slight_smile:
That sounds vaguely familiar. I don’t have Unity open at the moment, but that script can hide your cursor, as an option, is I recall?

No even when I click ESC it doesn’t show up, but it does have effect on buttons because you can see the buttons change colors.

Well, just a quick thought/test. If you remove that script temporarily for a test, can you see the cursor then? :slight_smile:
This is such a strange problem lol

I don’t know it didn’t write that code, just got it from asset store. I’m confused my self.

Well, err, did you try to remove the script temporarily from the gameobject and see? :slight_smile:

I just saw another poster about an unrelated question with a script CharacterControl where right at the beginning it says:
Cursor.lockState = CursorLockMode.Locked;
Is that what you have , too? Because if so, that is the line that is definitely hiding your cursor :slight_smile:

I tried something like this to unlock it, with one menu it works other don’t.

Cursor.lockState = CursorLockMode.None;
Cursor.visible = true;

lol. Well, now I’m entering the realm of confused on how it can work once but not twice :wink:
All I can suggest right now, is to try to find the piece in the code that locks the cursor initially and comment that part out
(or find another way to set it back to unlock when you want… if you do want it locked some other times.)

I admit I do not really know what is up with your game. The cursor is always locked, is that it?
Then, the ‘esc’ key frees it to move around?

I’m also confused my friend, isn’t there an away to send you my project.

lol Sure. you can post it in here, I think I’ve seen people do that…Maybe make a unity project file and click ‘upload a file’ ?
I can give it a look :slight_smile:

Uploading the file dont work, i got a google drive link.

https://drive.google.com/file/d/0B3Qr8WV9yfCgSGJTSEFWUGNwV0E/view?usp=drive_web

I you could look how to make mouse visible when moving to other menu, when you die or succeed in game.

Sure checking it out now.
Err, the link wasn’t public enough for me to download it

maybe this?
https://drive.google.com/file/d/0B3Qr8WV9yfCgSGJTSEFWUGNwV0E/view?usp=sharing

Dude, lol i’m not downloading 684 mb :slight_smile:

Let’s just look at the problem, again.
Recap and say what’s up lol

or send just a script or 2 that deals with everything. not your whole huge game :slight_smile:

uhh sure, is 684mb that much?

I just go a problem with showing the cursor when my character has won the game.

Here is a script

public class portalScript2 : MonoBehaviour {

    void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.name == "Player")
        {       
            guiDisplay.live += 100;
            Cursor.lockState = CursorLockMode.None;
            Cursor.visible = true;
            SceneManager.LoadScene ("victory");   
   
        }
    }

//    void Update()
//    {       
//            Cursor.lockState = CursorLockMode.None;
//            Cursor.visible = true;
//    }
}