Search Issue Tracker
Fixed in 9.0.0, 8.0.1
Votes
0
Found in [Package]
9.0.0, 8.0.1
Issue ID
1238833
Regression
No
[HDRP] Targets array should not be used errors are thrown on clicking "Modifies the projector boundaries" tab in Decal Projector
The targets array should not be used inside OnSceneGUI or OnPreviewGUI. Use the single target property instead errors are thrown on clicking on "Modifies the projector boundaries" button after resetting Decal projector.
/!\ you need to have Gizmos enabled in scene view for the error to repro.
Steps to repro:
1. Create a new HDRP Template Project.
2. Hierarchy > Right-click > Rendering > Decal Projector.
3. Inspector > Reset "Decal Projector" component.
4. Click on "Modifies the projector boundaries" button.
Actual Result:
The targets array should not be used inside OnSceneGUI errors are thrown in the console.
Expected Result:
No error in the console.
Reproducible in:
2020.2.0a7, 2020.1.0b6, 2020.1.0a23 with Package Version: 9.0.0, 8.0.1.
Environment:
Occurring on Windows 10 & Mac 10.15.
Stack trace:
The targets array should not be used inside OnSceneGUI or OnPreviewGUI. Use the single target property instead.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
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
- ScrollView speed is slower when entering Play mode
- UI Builder elements disappear and "Semantic - Unknown template name" error appears when changes to "Template" parameter are saved
- Renderers outside Light Probe hull use incorrect Ambient Probe values when "Renderer Light Probe Selection" is set to "Use Ambient Probe" and "Light Probes" on Mesh is set to "Blend Probes"
- ArgumentNullException error occurs when selecting a Camera in the Hierarchy with the Scene view open
- Clicking 'Open Editor Log' through the Console fails to open redirected Logs when relative Log files exist outside of the Project root
Resolution Note (fix version 9.0.0, 8.0.1):
Fixed in Version: 2020.1.0b10.3837 with Package version: 9.0.0, 8.1.0