Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Object.FindObjectsOfType is obsolete #534

Open
jcs090218 opened this issue Oct 5, 2023 · 0 comments · May be fixed by #542
Open

Object.FindObjectsOfType is obsolete #534

jcs090218 opened this issue Oct 5, 2023 · 0 comments · May be fixed by #542

Comments

@jcs090218
Copy link

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.'
@prata0x prata0x linked a pull request Dec 17, 2023 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant