I have made a simple 3D game in Unity and for the most part everything works, but when my player dies the mouse is not visible on the death screen.
I have two other scenes with what looks like to me the same exact settings, yet the mouse on those is visible.
Try to check your script. search for Cursor.visible
https://docs.unity3d.com/ScriptReference/Cursor-visible.html
Related
I'm trying to learn Unity making a base map with a player.
Yesterday, when I was pressing the play button I was able to test the game correctly, but today it stopped working, and as far as I know/remember I didn't change anything...
This is what I can see in game tab:
How can I show in game tab what I see in scene? I mean the map and the player. I can only see the Canvas right now...
I don't know how, Z value in MainCamera got reset:
After setting back to -10 it worked again
I'm creating a 2D game. It was configured as a 2D game since it was created.
When I selected a GameObject, in the scene their anchor, their size and their pivots were pointed out.
Suddenly this has changed, and it appears like if it were a 3D project, with a circle and all the axis around it, whatever GameObject I select. (Pic below)
How can I configure my Unity Editor to be like before? Maybe is worth it to say that in the top toolbar of Scene window there's still 2D mode selected:
Version: Unity 2018.3.14f1
You've set the Rotation Tool. I think you were using Move Tool before.
It's just a matter of which gizmo you see in the scene.
You may just press "W" on the keyboard.
Or press the Move Tool (first one in the images).
Further info on Unity Tools.
I'm new to Unity and I'm trying to make my own game (or at least learn to). I have a problem in the scene screen.
The scene screen is stuck on this mode and I don't know how to bring it back to the original camera view(hope you guys understand what I'm meaning), Tried to search how to do it but couldn't specified what I want, please help.
The Canvas when in Overlay mode turns out to be a giant object compared with normal scale.
You are just too far from your objects, to return to normal you can navigate manually right clicking Scene window and moving with WASD and QE.
Another workaround is that you use the FIND shortcut like following:
Click the object you want to find on Hierarchy window
Move your cursor to Scene window without clicking
Press F on your keyboard
If perforned correctly the Scene camera will find that object and you will be right back to where you were.
As we develop a little game with defold (defold 1.2.102 | defold editor 2) we encountered the following problem:
When we start our game the window shows everything we built properly and there are no build errors or error console logs. However there is no cursor. Neither on the levelscreen of the game nor on one of the other monitors. We added a keypress input for testing the buttons and it worked properly, but the problem remains: Where is our mouse pointer? Do we have to add or adjust it somehow?
Thank you for your help!
Are you running your game in fullscreen mode? Defold always hides the mouse pointer while running in fullscreen mode. You can add a game object with a sprite (or even better a gui box node) and let that follow the mouse coordinates and use it as a custom pointer for your game.
I am using Unity 5.1.2p3 with DK2 SDK 0.6.0.1 and I understand from this post that Screen Space - Overlay is not supported in Unity VR. It is recommended to use Screen Space - Camera (which in my case does not work) or World Space (which I am using now) but I need someone to help me understand how I get simple menu with buttons and toggles to show as a still image and how I can make selections and button presses with my mouse cursor.
I have created a menu for my app, with 4 toggles and 1 button. When I check the Virtual Reality Supported option with the Oculus being in Direct Mode and Canvas being in World Space, I can see it in VR, but I cannot see/find my mouse cursor to tick one of the toggles.
When I take off the headset, on my monitor's Game View tab, I can see and even use the mouse and select a toggle. Obviously, I have to keep the headset steady, so in my Game View, things do not shake!
Another thing I notice is that the VR camera is the same as the Main Camera in the Unity Hierarchy, but when I take off the headset and move it around, the position of the camera does not change, only looking up and down and around is reflected.
How do I simply do a static menu like a 2D surface that does not move in VR and a user can use button presses and muse clicks with the headset on? What settings are required for this way of doing UI and canvas stuff? There are 2 attachments, showing my current settings...
Are you specifically wanting to use the mouse? If you look through a blog entry I wrote below, it will show you how to use Gaze looking to trigger menu buttons:
http://talesfromtherift.com/vr-gaze-input/
You can achieve this by some code I list there that raycasts from the center of the screen and if it hits any UI, it will trigger the correct events and make it clickable by button (or by time).