- Home /
Question by
James_Braga · Jul 18, 2017 at 12:41 PM ·
error message
SceneManagement error unity 2017
Updated unity to version 2017 and I had an error with the following code :
if(SceneManager.GetActiveScene().buildIndex == 0)
error CS0117:
UnityEngine.SceneManagement.SceneManager
does not contain a definition forGetActiveScene
Comment
Hi. You can use Scene$$anonymous$$anagerHelper
class, which has three properties: -ActiveSceneName -ActiveSceneBuildIndex -EditorActiveSceneName
Your answer
Follow this Question
Related Questions
Failling to build 7 Answers
an unhandled win32 exception occurred in unity.exe [26640] 2 Answers
How can I load asset bundles that exceed 4GB via script? 0 Answers
nullreferenceexception: object reference not set to an instance of an object UnityEditor.... 2 Answers
Error after import GoogleAnalyticsV4 to unity project 0 Answers