Search Issue Tracker

Fixed

Fixed in 2021.3.23f1, 2022.2.14f1, 2023.1.0b9, 2023.2.0a7

Votes

0

Found in

2021.3.16f1

2022.2.1f1

2023.1.0a24

2023.2.0a1

Issue ID

UUM-21929

Regression

Yes

[VFX] Errors are thrown to the console when undoing operation after editing exposed gizmos

--

-

How to reproduce:
# Open the attached package
# Select Torus GO in Hierarchy
# In Visual Effect panel (Scene View) select Torus in Gizmos dropdown
# Modify minorRadius value by dragging slider in exposed property
# Modify minorRadius value by dragging gizmos handle
# Select CTRL/CMD + Z or Edit -> Undo Modified Property

Actual result: Errors are thrown to the console

ObjectDisposedException: SerializedProperty m_PropertySheet.m_Float.m_Array.Array.data[2].m_Overridden has disappeared!
UnityEditor.SerializedProperty.get_boolValue () (at /Users/bokken/buildslave/unity/build/Editor/Mono/SerializedProperty.bindings.cs:1067)
UnityEditor.VFX.AdvancedVisualEffectEditor+GizmoContext+<>c_{_}DisplayClass17_0.<BuildValue>b{_}_0 (System.Collections.Generic.List`1[T] o) (at /Users/vita.skruibyte/Documents/unity/packages/com.unity.visualeffectgraph/Editor/Inspector/AdvancedVisualEffectEditor.cs:601)

The targets array should not be used inside OnSceneGUI or OnPreviewGUI. Use the single target property instead.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:196)

 

type is not a supported int value
UnityEditor.VFX.AdvancedVisualEffectEditor:OnSceneGUI ()
(wrapper dynamic-method) object:lambda_method (System.Runtime.CompilerServices.Closure,UnityEditor.Editor)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

 

Reproducible with: 2021.3.16f1

Not reproducible with 2021.2.16f1

 

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.