- Home /
The question is answered, right answer was accepted
Trying to access SceneManagement
Hi,
I'm trying to access SceneManagement in Unity 5.2.3f1 but keep getting the error
Assets/Scripts/0-Player/StartMenu.js(4,8): BCE0021: Namespace 'UnityEngine.SceneManagement' not found, maybe you forgot to add an assembly reference?
I've tried putting the below script at the top of my .js but I still get the error, do I have to import SceneManagement ?
Thanks.
import UnityEngine.SceneManagement;
Answer by callen · Dec 22, 2015 at 05:16 PM
I'm pretty sure this is because SceneManagment is new in 5.3, you'd have to upgrade to that version to use it.
I stumbled on it here: http://forum.unity3d.com/threads/unityengine-application-loadlevel-int-is-obsolete.372915/
Not covered that great in the upgrade guide: http://docs.unity3d.com/Manual/UpgradeGuide53.html
Follow this Question
Related Questions
,Enums not being passed between scripts properly 1 Answer
Changing scenes while preserving background 1 Answer
How can I have several scenes running at the same time? 1 Answer
SceneManager.GetAllScenes() only returns the current scene 3 Answers
Re-loading a scene but on the background older scenes are displayed 1 Answer