Unity. Interaction with objects?

In General, clicking on the computer, I opened another scene - scene desktop. But when you open it there is no cursor. Why?

Here the code checks that the camera looks at the computer where clicking on the E open scene number 2.
using UnityEngine;
using UnityEngine.SceneManagement;

public class MonitorOnUse : MonoBehaviour
 private bool isUsed;

 void Start()


 void Update()
 if (!isUsed)
 if (Physics.Raycast(Camera.main.transform.position Camera.main.transform.forward, out RaycastHit obj, 6f))
 if (obj.collider.tag == "Monitor")
 if (Input.GetKey(KeyCode.E))

Here's the scene itself desktop (stage 2), where at the opening I will need to click on "Photoshop". But when opened, the cursor, and I can't do anything but to close.
March 23rd 20 at 19:23
1 answer
March 23rd 20 at 19:25
Need to see the scripts at the second stage. Some of them (perhaps even standard unitiy) hides the cursor.
Well, make sure that you have nowhere something like Screen.showCursor or Cursor.visible
force them to display the cursor. - colton_Connelly commented on March 23rd 20 at 19:28
@colton_Connellycan. But it is better to find the reason. Because if a script on Awake hides the cursor while you're at make it will show there is no guarantee that it will work there. The sequence of the scripts is not defined. - Maida_Ullri commented on March 23rd 20 at 19:31

Find more questions by tags Unity Game Engine