Hello again! Hopefully soon I’ll stop with the need of constant help from you guy’s when it comes to scripting but i really need a script that makes it to where when you hold down the right mouse key it enables the camera orbit setting and then when you let go of the right mouse key the camera wont move any more (and if possible can you make it to where it hides the mouse arrow). Help is GREATLY appreciated!
You can check to see if the Right Mouse button is down and put the code you want to happen inside of the if() check. Example below:
if(Input.GetMouseButton(1))
{
// hide the cursor
Screen.showCursor = false;
// put the code you want to happen here
}
else
{
// show the cursor
Screen.showCursor = true;
}