I just got into this situation: accidental infinite loop, stuck in play mode on a scene with unsaved work, Unity unresponsive. But I was lucky enough to have Monodevelop open, even though I was mainly using Sublime for scripting. I pressed the button to start debugging near the top left of the Monodevelop window, then hit the pause button. Execution paused on a line in the middle of my ...
Unity - How to stop Play Mode in case of infinite loop?
I suspect this is because I didn't install from Unity Hub and the IDE isn't fully recognizing my Unity install. Do you know how to get VS Code to work properly with Unity?
Unity Hub "Install failed: Validation failed" message whenever I try to ...
There are many ways to wait in Unity. They are really simple but I think it's worth covering most ways to do it: 1.With a coroutine and WaitForSeconds. This is by far the simplest way. Put all the code that you need to wait for some time in a coroutine function then you can wait with WaitForSeconds. Note that in coroutine function, you call the function with StartCoroutine(yourFunction ...
How to make the script wait/sleep in a simple way in unity
You really should try a search engine before resorting to asking for help. Google "What is a unity3d monobehaviour" - first hit is the official documentation explaining it.
I have even read everything in unity website but I still can’t do it. I know how to access another object but not another variable. This is the situation : I’m in script B and I want to access the variable X from script A. The variable X is boolean. Can you help me ? Btw i need to update X ’s value costantly in script B , how do I do that ?