Steps to reproduce:
- Create a new Unity project using the Universal 3D template
- Make sure Hierarchy V2 is enabled (Unity > Settings > General > Use new Hierarchy window)
- Create a new Cube GameObject (GameObject > 3D Object > Cube)
- Select the newly created Cube GameObject in the Hierarchy window
- Open the Animation window (Window > Animation > Animation)
- Create a new Animation
- Open the Animator window (Window > Animation > Animator)
- Click somewhere in an empty spot in the Animator window to select the "Base Layer"
- Click the "Add Behaviour" button
- Enter any Behaviour Script name ("Asd" for example) and create the script
- Observe the Console window
Actual results: "Trying to access the DPI setting of a visual element that is not on a panel." warning is thrown
Expected results: No errors or warnings are thrown
Reproducible with versions: 6000.3.7f1, 6000.4.0b7, 6000.5.0a6
Not reproducible with versions: 6000.5.0a5
Can’t test with versions: 6000.0.67f1 (due to no Hierarchy V2)
Tested on (OS): MacOS Silicon Tahoe 26.2, Ubuntu 24.04
Notes:
- Only reproduces with Hierarchy V2 enabled