wave-harmonic / crest

A class-leading water system implemented in Unity
MIT License
3.4k stars 475 forks source link

FindObjectsSortMode #1140

Closed Xue1iang closed 8 months ago

Xue1iang commented 8 months ago

Is there an existing issue for this?

Have you checked the documentation to resolve your problem?

Current Behavior

  1. Assets/Crest/Crest/Scripts/OceanRenderer.cs(1897,52): error CS0103: The name 'FindObjectsSortMode' does not exist in the current context
  2. Assets/Crest/Crest/Scripts/OceanRenderer.cs(1897,24): error CS0103: The name 'FindObjectsByType' does not exist in the current context
  3. Assets/Crest/Crest/Scripts/OceanRenderer.cs(1896,62): error CS0103: The name 'FindObjectsSortMode' does not exist in the current context ......

About 20 errors related to FindObjects

Expected Behavior

No response

Steps To Reproduce

No response

Unity Version

2021.3.3f1

Crest Version

4.19

Render Pipeline

High Definition

Editor or Standalone

Editor (Edit Mode)

Environment

- OS:Ubuntu 20.04
- GPU:RTX 3060
- Graphics API:Vulkan (1.2.131.1+dfsg1-1)
- Target Platform: PC

Anything else?

No response

Xue1iang commented 8 months ago

Problem solved

daleeidd commented 8 months ago

For anyone else... always use the latest patched version of Unity.

daleeidd commented 2 months ago

We reverted usage of these APIs in 4.20.1 so should no longer be a problem.