Search Issue Tracker

Active

Under Consideration for 6000.6.X

Votes

0

Found in

6000.4.3f1

6000.5.0b4

6000.6.0a3

Issue ID

UUM-139862

Regression

No

Adaptive Performance Samples are using the obsolete "FindFirstObjectByType" method

Adaptive Performance

-

Steps to reproduce:

  1. Create a new 3D URP package
  2. Open the Package Manager
  3. Install the Adaptive Performance package (com.unity.adaptiveperformance)
  4. Navigate to the Samples tab
  5. Import the "Environment" sample
  6. Observe the Console once imported

Actual results: No warnings are shown

Expected results: "FindFirstObjectByType is obsolete" warnings are shown

Reproducible with versions: 6.0.0 (6000.4.3f1, 6000.5.0b4, 6000.6.0a3)

Not reproducible with versions: 6000.3.13f1 (Method is not obsolete) 

Tested on (OS): Ubuntu 24.04, macOS 26.3

Warnings:

  • Assets/Samples/Adaptive Performance/6.0.0/Environment/AutoPerfControl.cs(222,49): warning CS0618: 'Object.FindFirstObjectByType<T>()' is obsolete
  • es/Adaptive Performance/6.0.0/Environment/AutoPerfControl.cs(227,48): warning CS0618: 'Object.FindFirstObjectByType<T>()' is obsolete

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.