- Home /
MenuScreenController.cs(2,19): error CS0234: The type or namespace name `SceneManagement' does not exist in the namespace `UnityEngine'. Are you missing an assembly reference?
When I try to build the script I have attached herewith, I get the error message shown as the question above. Can anyone please let me know of any solutions if you have come across and solved it. I am getting this error only when I try to build it, Otherwise the game is running correctly.
Error :- MenuScreenController.cs(2,19): error CS0234: The type or namespace name SceneManagement' does not exist in the namespace
UnityEngine'. Are you missing an assembly reference?
Which Unity version do you use? Scene$$anonymous$$anagement
namespace is quite recent.
I am getting this error only when I try to build it
When you said "build", what exactly do you mean? Building the project inside Unity? Or do you try building the solution in VisualStudio / $$anonymous$$onoDevelop? You can't build the solution in VS or $$anonymous$$D as they are only used as code editors. Unity compiles your scripts automatically when you switch over to Unity.
I have provided the requested information below. Please help me solve this issue
Version :- Unity 2017.1.0f3
"Build" mean:- unity / File / Build Setting / Build
Target Platform is Windows. Architecture is X86-64.
Your answer
![](https://koobas.hobune.stream/wayback/20220612142103im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity Editor Slows Down, It's Lagging, & Problem navigating in Unity Editor 0 Answers
Unity changing itself between builds 1 Answer
WebCamTexture ERROR - Could not find specified video device 2 Answers
Unity editor unresponsivve 0 Answers
How to get this string to change values for each button at runtime? 1 Answer