private void DrawElement(Rect rect, int index, bool isActive, bool isFocused) { rect = SOArchitecture_EditorUtility.GetReorderableListElementFieldRect(rect); SerializedProperty property = CollectionItemsProperty.GetArrayElementAtIndex(index); EditorGUI.BeginDisabledGroup(DISABLE_ELEMENTS); GenericPropertyDrawer.DrawPropertyDrawer(rect, property, Target.Type); EditorGUI.EndDisabledGroup(); }
private void DrawGenericPropertyField(Rect position, Rect valueRect) { if (IsConstantValueMultiline(constantValue)) { using (new EditorGUI.IndentLevelScope()) { position.y += EditorGUIUtility.singleLineHeight; position.height = GenericPropertyDrawer.GetHeight(constantValue, ValueType); GenericPropertyDrawer.DrawPropertyDrawer(position, constantValue, ValueType); } } else { GenericPropertyDrawer.DrawPropertyDrawer(valueRect, constantValue, ValueType, false); } }