Search Issue Tracker
Fixed
Fixed in 2022.3.11f1, 2023.2.0b11, 2023.3.0a6
Votes
0
Found in
2022.3.9f1
2023.2.0b4
2023.3.0a1
Issue ID
UUM-46256
Regression
Yes
[HDRP] Error spam when assigning invalid custom material to a water component
If you assign an invalid custom material to a water component, the console will get sapmmed with errors similar to the following:
{code:java}
Trying to access pass -1, but material 'x' subshader (0) has only y valid passes.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) {code}
If you assign None or a generated water material, you don't get the error. Looks like a regression in 2023.2 (package version 16).
*Steps to reproduce:*
1. Open the attached project
2. Open Assets/OutdoorsScene.unity
3. Select the Ocean gameobject
4. In the Water Surface component under Appearance, open the Custom Material Object picker
5. Select any of the default materials
*Expected Result:*
The water isn't rendered but no errors appear in the console.
*Actual Result:*
The console is spammed with errors until the material is removed
Issue appears in 2023.2 using package version 16.x
Issue does not appear in 2023.1, 2022.3
Project and video attached.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Add comment