Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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 /
avatar image
0
Question by Tarnthelos · Mar 06, 2016 at 11:22 AM · c#scene-loadingscene-switching

UnityEngine.SceneManagement contains no methods?

Here's a bit of an odd problem. I'm trying to use the 5.3.2f1 version of Unity for the new scene manager features, and after doing the whole "using UnityEngine.SceneManagement" I can use the usual monobehavior methods such as destroy, don't destroy on load, ect. But all of the methods that are supposed to be there, like the ones for loading scenes, I can't use.

The methods don't show up in Intellisense, and when I manually type them out I get an error telling me "SceneManager does not contain a definition for LoadScene".

Any ideas? I'm using c# and my Unity version is 5.3.2f1

Comment
Add comment · Show 6
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 Tarnthelos · Mar 08, 2016 at 02:07 AM 0
Share

Accidentally submitted this as an answer rather than a comment. Woops.

As a last resort, I tried reinstalling Unity. And while that did not work on the project I was working in, I can use the scene manager in a new project.

I'd greatly prefer to attempt to fix the issue in the current project, rather than porting everything over, but if that's what it takes then I guess I'll have to do that.

avatar image flashframe Tarnthelos · Mar 08, 2016 at 01:44 PM 2
Share

Any chance you have a Scene$$anonymous$$anager class in your project/namespace already that is causing a conflict?

avatar image Tarnthelos flashframe · Mar 08, 2016 at 08:10 PM 0
Share

Just checked, and as it happens I do. I renamed it to something else and now I can use the methods from the Unity class. Thank you so much!

Show more comments
avatar image SunnyChow · Mar 08, 2016 at 04:01 AM 0
Share

are you using it as static function?

avatar image Tarnthelos SunnyChow · Mar 08, 2016 at 01:38 PM 0
Share

I'm not sure what you mean. Are you asking if I'm calling the scene manager from a static method? If so, then no. And if I'm not mistaken, the Scene management class is static.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by meat5000 · Mar 06, 2016 at 11:22 AM

using UnityEngine.SceneManagement

This is INCORRECT for JS and the docs are wrong.

Use

import UnityEngine.SceneManagement;

Comment
Add comment · Show 1 · 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 Tarnthelos · Mar 06, 2016 at 03:30 PM 0
Share

I'm using c#. I mention so at the bottom of the post.

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.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Can I use one script to toggle between scenes? 1 Answer

UI canvas or panel that only appears once per game session? 1 Answer

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

Transition between levels using 2d colider works once but not repeatidly. 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