Cannot Enter in play mode because of compilers errors in standard assets package
Im new in unity and not experts in writing scripts, I've recently download the standard assets package and imported it in my project but I fail to enter in play mode and its gives me this message "All compiler errors have to be fixed before you can enter in play mode". I looked down at the console log and there were to errors as as seen in the attached image. I tried to loot at the scripts but because of my little knowledge in scripts, I couldn't figure it out. Thanks in advance. Sorry for my poor english
Answer by Xarbrough · Dec 18, 2015 at 08:58 PM
You might just need to update your standard assets via the asset store, or you could simple add using UnityEditor.SceneManagement;
to the top of those script files.
how to do i update my assets in the asset store? also here it is how the script(ForcedReset.cs) looks like
using System; using UnityEngine; using UnityEngine.Scene$$anonymous$$anagement; using UnityStandardAssets.CrossPlatformInput;
[RequireComponent(typeof (GUITexture))] public class ForcedReset : $$anonymous$$onoBehaviour { private void Update() { // if we have forced a reset ... if (CrossPlatformInput$$anonymous$$anager.GetButtonDown("ResetObject")) { //... reload the scene Scene$$anonymous$$anager.LoadScene(Scene$$anonymous$$anager.GetSceneAt(0).path); } } } where am I am suppossed to add UnityEditor.Scene$$anonymous$$anagement; in that script
Oh so your Standard Assets already contain the using Scene$$anonymous$$anagement statement? Are you using Unity Version 5.3? If not, you should update or try to find an older version of the standard assets. The Scene$$anonymous$$anager was added in Unity 5.3, so you need to match up the editor version with the Standard Assets version, if for some reason is hasn't worked automatically. Usually, when you update, Unity does update the existing script files for the new API automatically. If you have the 5.3 version, you can also go to Window -> Asset Store, and log in to your account and then go to downloads to re-download the most recent Standard Assets or just search for them in the search bar.
Answer by forestjay · Dec 19, 2015 at 02:51 PM
An alternative to @Xarbrough's answer would be to line 3 of ForcedReset.cs and line 4 of TimedObjectAvatar.cs .
Answer by programmerd · Dec 27, 2015 at 03:53 PM
Thanks guys, I've finally made it. I just downloaded another version of Standard Assets from the assets store and it worked.
Your answer
![](https://koobas.hobune.stream/wayback/20220612052957im_/https://answers.unity.com/themes/thub/images/avi.jpg)