neuecc / UniRx

Reactive Extensions for Unity
MIT License
7.01k stars 895 forks source link

`Object.FindObjectsOfType` is obsolete #534

Open jcs090218 opened 9 months ago

jcs090218 commented 9 months ago

I'm using Unity 2023.1.11f1, it seems like Unity has made function Object.FindObjectsOfType obsolete.

Assets\Plugins\UniRx\Scripts\UnityEngineBridge\MainThreadDispatcher.cs(580,31): warning CS0618: 'Object.FindObjectsOfType<T>()' is obsolete: 'Object.FindObjectsOfType has been deprecated. Use Object.FindObjectsByType instead which lets you decide whether you need the results sorted or not.  FindObjectsOfType sorts the results by InstanceID but if you do not need this using FindObjectSortMode.None is considerably faster.'