Skip to content

Commit d09811b

Browse files
committed
scrollView behaviour fix
1 parent c3180f8 commit d09811b

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

Assets/Editor/Editor Windows/ScriptableObjectEditorWindow.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private void OnEnable()
3131

3232
private void OnGUI()
3333
{
34-
ScrollPos = EditorGUILayout.BeginScrollView(ScrollPos);
34+
3535
// Baþlýk kýsmý ve ayarlar menüsü
3636
EditorGUILayout.BeginHorizontal();
3737
GUILayout.Label("Game Configuration Editor", EditorStyles.boldLabel);
@@ -52,6 +52,7 @@ private void OnGUI()
5252
}
5353
EditorGUILayout.EndHorizontal();
5454

55+
5556
// Seçilen tipleri göster
5657
GUILayout.Label("Selected Config Types: " + (selectedTypes.Count > 0 ? string.Join(", ", selectedTypes.Select(t => t.Name)) : "None"), EditorStyles.miniBoldLabel);
5758

@@ -60,6 +61,7 @@ private void OnGUI()
6061
GUILayout.Label("No Configs Loaded", EditorStyles.boldLabel);
6162
}
6263

64+
ScrollPos = EditorGUILayout.BeginScrollView(ScrollPos);
6365
if (groupedConfigs.Count != 0)
6466
{
6567

Assets/Resources/ScriptableObjects/TestConfig 1.asset

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ MonoBehaviour:
1212
m_Script: {fileID: 11500000, guid: b23340d9b453ca740945f54769125bb1, type: 3}
1313
m_Name: TestConfig 1
1414
m_EditorClassIdentifier:
15-
number: 0
16-
value: 0
17-
text: Hello World!
15+
number: 58
16+
value: 2.5
17+
text: Hello There
1818
flag: 0
1919
position: {x: 0, y: 0, z: 0}
2020
rotation: {x: 0, y: 0, z: 0, w: 1}
21-
color: {r: 1, g: 1, b: 1, a: 1}
21+
color: {r: 0.5169811, g: 0.09656813, b: 0.09656813, a: 1}
2222
gameObject: {fileID: 0}
2323
transform: {fileID: 0}
2424
material: {fileID: 0}

Assets/Resources/ScriptableObjects/TestConfig 2.asset

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ MonoBehaviour:
1212
m_Script: {fileID: 11500000, guid: b23340d9b453ca740945f54769125bb1, type: 3}
1313
m_Name: TestConfig 2
1414
m_EditorClassIdentifier:
15-
number: 0
15+
number: 22
1616
value: 0
17-
text: Hello World!
18-
flag: 0
17+
text:
18+
flag: 1
1919
position: {x: 0, y: 0, z: 0}
2020
rotation: {x: 0, y: 0, z: 0, w: 1}
21-
color: {r: 1, g: 1, b: 1, a: 1}
21+
color: {r: 0.5096451, g: 0.096653506, b: 0.6830188, a: 1}
2222
gameObject: {fileID: 0}
2323
transform: {fileID: 0}
2424
material: {fileID: 0}

Assets/Resources/ScriptableObjects/TestConfig.asset

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ MonoBehaviour:
1414
m_EditorClassIdentifier:
1515
number: -13
1616
value: 0
17-
text: Hello World!
17+
text:
1818
flag: 0
1919
position: {x: -3.8, y: 0, z: 12}
2020
rotation: {x: 0, y: 0, z: 0, w: 1}
21-
color: {r: 0, g: 0.09500832, b: 0.14716971, a: 1}
21+
color: {r: 0.018718384, g: 0.90188676, b: 0.06520096, a: 1}
2222
gameObject: {fileID: 0}
2323
transform: {fileID: 0}
2424
material: {fileID: 0}

0 commit comments

Comments
 (0)