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

SRP Foundation

-

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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.