コード例 #1
0
        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();
        }
コード例 #2
0
        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());
        }
コード例 #3
0
        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());
        }