Search Issue Tracker
By Design
Votes
0
Found in
2023.2.4f1
2023.3.0a18
Issue ID
UUM-58475
Regression
No
"Object.FindObjectsOfType<T>() is obsolete" warning is thrown when using "Transitions Plus" asset
How to reproduce:
1. Open the “kk.zip“ project
2. Observe the Console window
3. (If no warnings are thrown)
3.1 Rebuild the Library
3.2 Observe the Console window
Expected result: No warnings or errors in the Console window
Actual result: “Object.FindObjectsOfType<T>() is obsolete (has deprecated)” warning is thrown
Reproducible with: 2023.2.4f1, 2023.3.0a18
Couldn’t test with: 2021.3.33f1, 2022.3.15f1 (Object.FindObjectsOfType<T>() is not deprecated)
Reproducible on: MacOS 12.6.7 (by reporter), Windows 11
Not reproducible on: no other environment tested
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note:
`FindObjectsOfType` are still usable in that version. The reason we deprecated it as it did not scale as it was doing sorting that dont scale with the amount of Object in the project as explained in the Obsolete warning.
So for speed, I would suggest moving to the new API `FindObjectsByType`