public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { var bindableIds = PropertyDrawerUtility.GetActualObjectForSerializedProperty <BindableValueSerializedInfo>(fieldInfo, property); var path = property.FindPropertyRelative("pathInModel"); path.stringValue = MultiLevelDropDownUtility.DrawControl( position, label, path.stringValue, Node.GetBindableValuesPaths(Shibari.Model.RootNodeType, "", false, true, bindableIds.allowedValueType).ToList() ); property.serializedObject.ApplyModifiedProperties(); }
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { var value = property.FindPropertyRelative("value"); value.stringValue = MultiLevelDropDownUtility.DrawControl(position, label, value.stringValue, BindableData.GetBindableHandlersPaths(Shibari.Model.RootNodeType, "").ToList()); }
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { var value = property.FindPropertyRelative("value"); value.stringValue = MultiLevelDropDownUtility.DrawControl(position, label, value.stringValue, Shibari.Model.GetNodeTypes().Select(t => t.FullName).ToList()); }