Jump to content

The type or namespace name 'SceneManagement' does not exist in the namespace 'UnityEditor'


Spofford
Go to solution Solved by Peter,

Recommended Posts

I'm getting an error when trying to build, due to the GeNaPhysicsDecorator.cs class using UnityEditor in an ordinary game build, how do I fix this?

Link to comment
Share on other sites

Having the same issue after upgrading to 3.4.1 from the asset store. Even when I fix this compile error with #if UNITY_EDITOR commands, there are more compile errors after that.

Link to comment
Share on other sites

Same issue here.

 

Temporarily solved it by adding UNITY_EDITOR commands in two instances:

  • yield return null for GeNaPhysicsDecorator.cs -> OnSelfSpawned coroutine
  • ignore GaiaTimeOfDayLightSyncManager.cs -> EditorUpdate function
  • Thanks 1
Link to comment
Share on other sites

  • Solution

Thanks for reporting this issue! I checked and this is indeed a bug in the latest GeNa version. Please find attached a patch that contains the changes mentioned by @Murshid above. Installing the patch should allow you to build again, however it might have the side effect that the Physics Decorator will not work correctly when running in a standalone build.
We will review this to release a GeNa update with a proper fix for this.

Here is the patch, it is an .unitypackage that can be installed via Assets > Import Package > Custom Package... in the Unity Editor.
GeNaBuildErrorsPatch.zip

  • Thanks 1
Link to comment
Share on other sites

Update: We released the above patch as a regular update to GeNa in Canopy and the Unity Asset Store as well to prevent everyone from running into those build issues.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...