Skip to content

Commit 361f721

Browse files
PaulDemeulenaerejulienf-unity
authored andcommitted
Fix Prefab Highlight for initial event name toggle & override #71
1 parent f1c5f97 commit 361f721

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

com.unity.visualeffectgraph/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88

99
### Fixed
1010
- Fix for node window staying when clicking elsewhere
11+
- Prefab highlight missing for initial event name toggle [Case 1263012](https://issuetracker.unity3d.com/product/unity/issues/guid/1263012/)
1112

1213
## [8.2.0] - 2020-07-08
1314

com.unity.visualeffectgraph/Editor/Inspector/VisualEffectEditor.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,9 @@ bool DisplayProperty(ref VFXParameterInfo parameter, GUIContent nameContent, Ser
174174
toggleRect.yMin += 2.0f;
175175
toggleRect.width = 18;
176176
EditorGUI.BeginChangeCheck();
177+
EditorGUI.BeginProperty(toggleRect, GUIContent.none, overridenProperty);
177178
bool newOverriden = EditorGUI.Toggle(toggleRect, overrideMixed ? false : overridenProperty.boolValue, overrideMixed ? Styles.toggleMixedStyle : Styles.toggleStyle);
179+
EditorGUI.EndProperty();
178180
overriddenChanged = EditorGUI.EndChangeCheck();
179181
if (overriddenChanged)
180182
{
@@ -655,7 +657,9 @@ void InitialEventField(VisualEffectResource resource)
655657
fakeInitialEventNameField.stringValue = resource != null ? resource.initialEventName : "OnPlay";
656658

657659
EditorGUI.BeginChangeCheck();
660+
EditorGUI.BeginProperty(toggleRect, GUIContent.none, m_InitialEventNameOverriden);
658661
bool resultOverriden = EditorGUI.Toggle(toggleRect, m_InitialEventNameOverriden.boolValue, Styles.toggleStyle);
662+
EditorGUI.EndProperty();
659663
if (EditorGUI.EndChangeCheck())
660664
{
661665
m_InitialEventNameOverriden.boolValue = resultOverriden;

0 commit comments

Comments
 (0)