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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Add comment