Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 9f66327

Browse files
Added developer description to runtime sets
1 parent c1e1f3f commit 9f66327

File tree

4 files changed

+33
-3
lines changed

4 files changed

+33
-3
lines changed

Assets/ObjectSet.asset

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &11400000
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInternal: {fileID: 0}
8+
m_GameObject: {fileID: 0}
9+
m_Enabled: 1
10+
m_EditorHideFlags: 0
11+
m_Script: {fileID: 11500000, guid: 294e8bbb40af68441a293e00fdc5548b, type: 3}
12+
m_Name: ObjectSet
13+
m_EditorClassIdentifier:
14+
DeveloperDescription:
15+
_value:
16+
_items: []

Assets/ObjectSet.asset.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/SO Architecture/Editor/Inspectors/RuntimeSetEditor.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
public class RuntimeSetEditor : Editor
77
{
88
private SOArchitectureBaseObject Target { get { return (SOArchitectureBaseObject)target; } }
9+
private SerializedProperty DeveloperDescription { get { return serializedObject.FindProperty("DeveloperDescription"); } }
910

10-
private ReorderableList _reorderableList;
11+
private ReorderableList _reorderableList;
1112

1213
private void OnEnable()
1314
{
@@ -20,6 +21,8 @@ public override void OnInspectorGUI()
2021
{
2122
_reorderableList.DoLayoutList();
2223

24+
EditorGUILayout.PropertyField(DeveloperDescription);
25+
2326
_reorderableList.serializedProperty.serializedObject.ApplyModifiedProperties();
2427
}
2528
private void DrawElement(Rect rect, int index, bool isActive, bool isFocused)
@@ -30,7 +33,7 @@ private void DrawElement(Rect rect, int index, bool isActive, bool isFocused)
3033
SerializedProperty property = _reorderableList.serializedProperty.GetArrayElementAtIndex(index);
3134

3235
EditorGUI.PropertyField(rect, property);
33-
36+
3437
property.serializedObject.ApplyModifiedProperties();
3538
}
3639
}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
using UnityEngine;
22

3-
[CreateAssetMenu(fileName = "ObjectSet.asset", menuName = SOArchitecture_Utility.OBJECT_SETS, order = SOArchitecture_Utility.ASSET_MENU_ORDER)]
3+
[CreateAssetMenu(
4+
fileName = "ObjectSet.asset",
5+
menuName = SOArchitecture_Utility.OBJECT_SETS,
6+
order = SOArchitecture_Utility.ASSET_MENU_ORDER)]
47
public class ObjectSet : RuntimeSet<Object>
58
{
69
}

0 commit comments

Comments
 (0)