Hi,
When I use the frame debugger and select a draw call that draws to a MRT with eight render targets, I get the following errors:
GUI Error: Invalid GUILayout state in FrameDebuggerWindow view. Verify that all layout Begin/End calls match
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
IndexOutOfRangeException: Index was outside the bounds of the array.
UnityEditorInternal.FrameDebuggerInternal.FrameDebuggerEventDetailsView.DrawRenderTargetToolbar () (at <043e10ec4a0f4999a2729072194b9cfe>:0)
UnityEditorInternal.FrameDebuggerInternal.FrameDebuggerEventDetailsView.DrawEventDetails (UnityEngine.Rect rect, UnityEditorInternal.FrameDebuggerInternal.FrameDebuggerEvent descs, System.Boolean isDebuggingEditor) (at <043e10ec4a0f4999a2729072194b9cfe>:0)
UnityEditor.FrameDebuggerWindow.DrawEnabledFrameDebugger (System.Boolean repaint) (at <043e10ec4a0f4999a2729072194b9cfe>:0)
UnityEditor.FrameDebuggerWindow.OnGUI () (at <043e10ec4a0f4999a2729072194b9cfe>:0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at <043e10ec4a0f4999a2729072194b9cfe>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at <043e10ec4a0f4999a2729072194b9cfe>:0)
UnityEditor.DockArea.OldOnGUI () (at <043e10ec4a0f4999a2729072194b9cfe>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <02b90f1c0dfb49a1adfd6da071d5b611>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
But when I change the render targets from eight to seven, it works fine without the errors. However, I did not get this error in Unity 2021 and could go through all eight render targets in the frame debugger. Is there a possible fix or explanation for why this occurs?
TIA