Jump to content

Error CS0117: 'Selection' does not contain a definition for 'objects'


nernada
Go to solution Solved by Peter,

Recommended Posts

Hi there,

I'm a new game developer working with a designer that used Gaia. I'm trying to import the unity package but runtime of game now has many errors. It seems to have the same issue but across all components.. Wondering where do I begin with troubleshooting this? 😞

 

LIST OF ERRORS:

  1. Assets/Procedural Worlds/Gaia/Gaia Pro/Scripts/MultiTerrainSystem/TerrainLoader.cs(130,31): error CS0117: 'Selection' does not contain a definition for 'objects'
  2. Assets/Procedural Worlds/Gaia/Gaia Pro/Scripts/Utils/GaiaAudioManager.cs(131,31): error CS0117: 'Selection' does not contain a definition for 'activeGameObject'
  3. Assets/Procedural Worlds/Gaia/Gaia Pro/Weather/VFX/Scripts/InteriorWeatherController.cs(469,23): error CS0117: 'Selection' does not contain a definition for 'activeObject'
  4. Assets/Procedural Worlds/Gaia/Scripts/Lighting System/GaiaLightingProfile.cs(83,23): error CS0117: 'Selection' does not contain a definition for 'activeObject'
  5. Assets/Procedural Worlds/Gaia/Scripts/Lighting System/GaiaGlobal.cs(803,46): error CS0117: 'Selection' does not contain a definition for 'activeGameObject'
  6. Assets/Procedural Worlds/Gaia/Scripts/Water System/GaiaWaterProfile.cs(169,23): error CS0117: 'Selection' does not contain a definition for 'activeObject'
  7. Assets/Procedural Worlds/Gaia/Scripts/MultiTerrainSystem/TerrainLoaderManager.cs(847,35): error CS0117: 'Selection' does not contain a definition for 'activeObject'
  8. Assets/Procedural Worlds/Gaia/Scripts/MultiTerrainSystem/TerrainLoaderManager.cs(863,31): error CS0117: 'Selection' does not contain a definition for 'activeObject'
  9. Assets/Procedural Worlds/Gaia/Scripts/MultiTerrainSystem/TerrainLoaderManager.cs(1163,23): error CS0117: 'Selection' does not contain a definition for 'activeGameObject'
  10. Assets/Procedural Worlds/Gaia/Scripts/Photo Mode/TooltipProfile.cs(35,23): error CS0117: 'Selection' does not contain a definition for 'activeObject'
  11. Assets/Procedural Worlds/Gaia/Scripts/ValueAdds/Location System/LocationSystemScriptableObject.cs(398,23): error CS0117: 'Selection' does not contain a definition for 'activeObject'
  12. Assets/Procedural Worlds/Gaia/Scripts/Scene Managment/GaiaSceneCullingProfile.cs(135,23): error CS0117: 'Selection' does not contain a definition for 'activeObject'
  13. Assets/Procedural Worlds/Gaia/Scripts/SpawningSystem/BiomeController.cs(242,27): error CS0117: 'Selection' does not contain a definition for 'activeObject'
  14. Assets/Procedural Worlds/Gaia/Scripts/StampingSystem/WorldMapStampToken.cs(77,27): error CS0117: 'Selection' does not contain a definition for 'activeGameObject'
  15. Assets/Procedural Worlds/Gaia/Scripts/StampingSystem/WorldMapStampToken.cs(79,45): error CS0117: 'Selection' does not contain a definition for 'activeGameObject'
  16. Assets/Procedural Worlds/Gaia/Scripts/StampingSystem/WorldMapStampToken.cs(80,54): error CS0117: 'Selection' does not contain a definition for 'activeGameObject'
  17. Assets/Procedural Worlds/Gaia/Scripts/SessionSystem/GaiaSessionManager.cs(1900,27): error CS0117: 'Selection' does not contain a definition for 'activeGameObject'
  18. Assets/Procedural Worlds/Gaia/Scripts/SessionSystem/GaiaSessionManager.cs(1951,23): error CS0117: 'Selection' does not contain a definition for 'activeGameObject'
  19. Assets/Procedural Worlds/Gaia/Scripts/SessionSystem/GaiaSessionManager.cs(2001,23): error CS0117: 'Selection' does not contain a definition for 'activeGameObject'
  20. Assets/Procedural Worlds/Gaia/Scripts/StampingSystem/Stamper.cs(1970,27): error CS0117: 'Selection' does not contain a definition for 'activeObject'
  21. Assets/Procedural Worlds/Gaia/Scripts/Utils/UnityPipelineProfile.cs(160,23): error CS0117: 'Selection' does not contain a definition for 'activeObject'
  22. Assets/Procedural Worlds/Gaia/Scripts/Utils/GaiaUtils.cs(959,27): error CS0117: 'Selection' does not contain a definition for 'activeObject'
  23. Assets/Procedural Worlds/Gaia/Scripts/Utils/GaiaUtils.cs(2587,61): error CS0117: 'Selection' does not contain a definition for 'activeObject'
  24. Assets/Procedural Worlds/Gaia/Scripts/Utils/GaiaUtils.cs(2594,95): error CS0117: 'Selection' does not contain a definition for 'activeObject'
  25. Assets/Procedural Worlds/Gaia/Scripts/Utils/GaiaUtils.cs(2611,23): error CS0117: 'Selection' does not contain a definition for 'activeObject'
  26. Assets/Procedural Worlds/Gaia/Scripts/SpawningSystem/Spawner.cs(5248,43): error CS0117: 'Selection' does not contain a definition for 'activeObject'
  27. Assets/Procedural Worlds/Gaia/Scripts/Utils/GaiaUtils.cs(5377,31): error CS0117: 'Selection' does not contain a definition for 'activeObject'
  28. Assets/Procedural Worlds/Gaia/Scripts/Utils/GaiaUtils.cs(5417,27): error CS0117: 'Selection' does not contain a definition for 'activeObject'
     
Link to comment
Share on other sites

  • Solution

Hi @nernada, it looks like another asset or one of your own scripts is overriding the class name "Selection" in the project, which then leads to the errors you are seeing.
You can double-click on the error and hover over the term "Selection" in the code; this should show you where that term is resolved to in that project - it usually should point to the class "UnityEditor.Selection" like so:

image.png

In your project, it most likely points to something else. You should then be able to right click on the term "selection" and select "Go To Definition" to find the file that makes that definition that overrides the meaning of "Selection" for the entire project. This can either be a script file, or a DLL library.

If this is one of your own scripts, you should use a namespace for your own code to avoid such conflicts. If this comes from another asset developer, you would need to contact them with this error and ask them to fix this from their side, they should be using namespaces as well. 

Alternatively, you can crawl through all of the errors in the Gaia code and change "Selection" to "UnityEditor.Selection" to work around this issue, this would however be reverted when you update Gaia again.

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...