Hello all, I’m quite new around here and apologize if this post isn’t necessary.
Like i said I recently started this course and downloaded the latest unity version. 5.6.1f. I’m also using Visual Studio community on a Windows PC.
While going through this course my app work just fine but my script had a green error:
Severity Code Description Project File Line Suppression State
Warning CS0618 ‘Application.LoadLevel(string)’ is obsolete: ‘Use SceneManager.LoadScene’
It works fine using Application but for me i wanted to remove that green line error. I google it and it seems Application.LoadLevel is obsolete and it was switched to SceneManager.LoadScene. Just need to add on top:
using UnityEngine.SceneManagement;
For it to work. i added a image to show what I mean. Like i said earlier if this post isn’t necessary please delete or let me know so I can delete it. =)