Search Issue Tracker
Active
Under Consideration for 6000.6.X
Votes
0
Found in
6000.4.1f1
6000.5.0b1
6000.6.0a1
Issue ID
UUM-137791
Regression
Yes
“'Object.FindFirstObjectByType(Type)' is obsolete…” warning is thrown after installing some of the Shader Graph Samples
Reproduction steps:
1. Create a new project
2. Window > Package Management > Package Manager > All Packages > Shader Graph > Samples
3. Find Feature Examples Sample and press “Import” button
4. Observe the Console
Actual result: “Assets/Samples/Scriptable Render Pipeline Core/17.6.0/Common/Scripts/Editor/SamplesShowcaseEditorWindow.cs(22,48): warning CS0618: 'Object.FindFirstObjectByType(Type)' is obsolete: 'FindFirstObjectByType has been deprecated because it relies on instance ID ordering. Use FindAnyObjectByType instead, which does not depend on ordering.’” warning is thrown after importing the Sample
Expected result: No errors and warnings are thrown
Reproducible with: 17.4.0 (6000.4.0b6, 6000.4.1f1), 17.5.0 (6000.5.0b1), 17.6.0 (6000.6.0a1)
Not reproducible with: 17.0.4 (6000.0.71f1), 17.3.0 (6000.3.12f1), 17.4.0 (6000.4.0b5)
Reproduced on: Windows 11, macOS Tahoe 26.3 (M4)
Note:
- Issue is also reproducible with Terrain Shaders and Production Ready Shaders
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
Add comment