Search Issue Tracker
Fixed
Fixed in 6000.4.4f1, 6000.5.0b5, 6000.6.0a2
Under Consideration for 6000.6.X
Votes
0
Found in
6000.4.0b10
6000.5.0a8
6000.6.0a1
Issue ID
UUM-136051
Regression
No
Samples are using the obsolete "FindFirstObjectByType" method
How to reproduce:
1. Create a new Unity project and install the VFX package
2. In the Project window, right-click -> Create -> Visual Effects -> Visual Effect Graph
3. In the "Create new VFX Asset" window, click "Install Learning Templates"
4. Wait for the scripts to compile and observe the Console
Expected results: No warnings are thrown
Actual results: "FindFirstObjectByType is obsolete" warning is thrown
Reproducible with: 6000.4.0b10, 6000.5.0a8
Not reproducible with: 6000.0.69f1, 6000.3.10f1 (Method is not obsolete)
Reproducible on: Ubuntu 24, macOS Tahoe 26
Not reproducible on: No other environment tested
Full warning:
Assets/Samples/Scriptable Render Pipeline Core/17.5.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.'
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
- Inspector loses focus or Material doesn't update when using GetModifiedMaterial with a Mask component
- Crash on GfxDeviceClient::AllocateBufferInternal when entering Play mode using Graphics.RenderPrimitives and Graphics.DrawProcedural in the scene
- Import TextMesh Pro window opens when the Text Mesh Pro Essentials and Examples are already imported when creating a new TextMesh Pro GameObject in the Hierarchy with TextMesh Pro settings reset
- Video is not rendered when the VideoPlayer GameObject is disabled and re-enabled after playback starts while using Material Override render mode
- Selection outline is not shown when selecting a high intensity HDR Swatch preset in Color Picker
Resolution Note:
Fixed in 6000.6.0a2
Resolution Note (fix version 6000.6.0a2):
Fixed in 6000.6.0a2
Resolution Note (fix version 6000.5.0b5):
Fixed in 6000.5.0b5
Resolution Note (fix version 6000.4.4f1):
Fixed in 6000.4.4f1