File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
com.unity.visualeffectgraph Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2424- De-nicified attribute name (conserve case) in Set Custom Attribute title
2525- Changed the default "No Asset" message when opening the visual effect graph window
2626- Subgraphs are not in hardcoded categories anymore : updated default subgraph templates + Samples to add meaningful categories.
27+ - Enum fields having headers show the header in the inspector as well.
2728
2829## [ 7.5.0] - 2020-06-08
2930
Original file line number Diff line number Diff line change @@ -95,6 +95,11 @@ public virtual void DoInspectorGUI()
9595 enumNames = values . Select ( t => new GUIContent ( Enum . GetName ( prop . Key . FieldType , t ) ) ) . ToArray ( ) ;
9696 enumValues = values . ToArray ( ) ;
9797
98+ HeaderAttribute attr = prop . Key . GetCustomAttributes < HeaderAttribute > ( ) . FirstOrDefault ( ) ;
99+
100+ if ( attr != null )
101+ GUILayout . Label ( attr . header , EditorStyles . boldLabel ) ;
102+
98103 EditorGUILayout . IntPopup ( prop . Value , enumNames , enumValues ) ;
99104 }
100105 else
You can’t perform that action at this time.
0 commit comments