Complete Unity Developer

Someone please help me so i could move forward with this course. :cry:
I dont know what causing this error right after creating a “new script”.
I deleted my pervious project and re-create it again. But the same error keep appearing.

Is that the warning thats at the bottom?

If its relating to the warning application.loadlevel being obsolete. Theres a slight change.

It is just a warning. But to use the alternative new way.

At the top you have to put
using UnityEngine.SceneManagement;

Then you can use the scenemanager to load the scene with an Int.
SceneManager.LoadScene( 2 );

For info you can read more here
https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager.LoadScene.html

Sorry on phone just now to cant format properly.

1 Like

Its okey. I’m trying to fix it now. Thank you

Privacy & Terms