File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ public override VisualElement CreatePropertyGUI(SerializedProperty property)
50
50
51
51
var propType = GetPropertyTypeFromSerializedProperty ( type . stringValue ) ;
52
52
53
+ enumField . Init ( propType ) ;
54
+
53
55
enumField . value = propType ;
54
56
55
57
enumField . RegisterValueChangedCallback ( e =>
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ public override VisualElement CreatePropertyGUI(SerializedProperty property)
33
33
nameField . RegisterValueChangedCallback ( evt => foldout . text = evt . newValue ) ;
34
34
var typeField = template . Q < EnumField > ( "Type" ) ;
35
35
var customTypeField = template . Q < VisualElement > ( "CustomType" ) ;
36
+
37
+ typeField . Init ( VariableType . Float ) ;
36
38
37
39
customTypeField . style . display = ( ( VariableType ) typeField . value ) == VariableType . Custom ? DisplayStyle . Flex : DisplayStyle . None ;
38
40
You can’t perform that action at this time.
0 commit comments