• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
1
Question by programmerd · Dec 18, 2015 at 08:57 PM · script error

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 the errors

unity-10.jpg (36.0 kB)
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by ahmedaniss · Nov 26, 2020 at 12:46 AM

problem fixed here : https://youtu.be/GM8-OQuSXMw

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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 .

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image programmerd · Dec 19, 2015 at 04:26 PM 0
Share

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

avatar image Xarbrough · Dec 19, 2015 at 04:40 PM 0
Share

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.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

transformers script error 1 Answer

After converting c# Script, Unity is giving errors on multiple lines which were fine before. 0 Answers

Need help with 4 scripting errors 0 Answers

Hi, I have two errors. I am sorry everyone but I am going crazy 1 Answer

Assets/Controller/Character Controller.cs(4,33): error CS8025: Parsing error 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges