Jump to content

Gaia Pro 2021 v 3.4.0 Errors from update


Carp
Go to solution Solved by Peter,

Recommended Posts

Gaia Pro 2021 v 3.4.0 Errors from update

I updated v 3.4.0 in the Unity 2021.3.15f1 HDRP project and i get those errors...

Assets\Procedural Worlds\Flora\Scripts\Runtime\FloraUtils.cs(50,27): error CS0117: 'Object' does not contain a definition for 'FindFirstObjectByType'

Assets\Procedural Worlds\Flora\Scripts\Runtime\FloraUtils.cs(64,27): error CS0117: 'Object' does not contain a definition for 'FindObjectsByType'

Assets\Procedural Worlds\Flora\Scripts\Runtime\FloraUtils.cs(64,48): error CS0103: The name 'FindObjectsSortMode' does not exist in the current context

errors.JPG

Link to comment
Share on other sites

  • Solution

Hi @Carp and @Myke Price, thanks for reporting this issue. I checked and installed Gaia in multiple Unity versions and I found the problem: In the 3.4.0 update we added fixes for compatibility with Unity 2023.1. In that version the Unity API functions

Object.FindObjectOfType

Object.FindObjectsOfType

are marked as obsolete, now one should use the functions 

Object.FindFirstObjectOfType
Object.FindObjectsByType

instead.

In the unity manual it looks like the newer functions are supported from 2021.3 onwards, so we coded them in like that accordingly. However it looks like those newer functions are NOT available from 2021.3 but rather seem to become  active somewhere in 2022.2 (I was able to install in 2022.2.14f without getting those errors).

Please find attached a hotfix for Gaia Pro 2021 that fixes this issue, we only reference this newer functions in Unity 2022.3 and above now. An update on the asset store & canopy is underway to officially fix it there as well.

GaiaPro20213.4.0Hotfix.zip
 

You can install the patch by installing the included .unitypackage file via Assets > Import Package > Custom Package... in the Unity Editor.

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