Skip to content

Commit 7835dbc

Browse files
committed
added tooltips for config names
If the name does not fit in the layout, you can hover over it with your mouse and read it.
1 parent 274160b commit 7835dbc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Assets/Editor/Editor Windows/ScriptableObjectEditorWindow.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@ private void PutPropertiesForObject_V<T>(List<T> Configs) where T : ScriptableOb
403403

404404
// Display the file name and a delete button for the asset
405405
EditorGUILayout.BeginHorizontal();
406-
EditorGUILayout.LabelField(fileName, EditorStyles.miniBoldLabel, GUILayout.MinWidth(PropertyMinWidth));
406+
GUIContent propertyContent = new GUIContent(fileName, fileName);
407+
EditorGUILayout.LabelField(propertyContent, EditorStyles.miniBoldLabel, GUILayout.MinWidth(PropertyMinWidth));
407408
DeleteButton(Config);
408409
EditorGUILayout.EndHorizontal();
409410

@@ -534,7 +535,8 @@ private void PutPropertiesForObject_H<T>(List<T> Configs) where T : ScriptableOb
534535
DeleteButton(Config);
535536

536537
// Display the file name for the asset
537-
EditorGUILayout.LabelField(fileName, EditorStyles.miniBoldLabel, GUILayout.Width(120));
538+
GUIContent propertyContent = new GUIContent(fileName, fileName);
539+
EditorGUILayout.LabelField(propertyContent, EditorStyles.miniBoldLabel, GUILayout.Width(120));
538540

539541
SerializedObject serializedObject = new(Config);
540542
SerializedProperty property = serializedObject.GetIterator();

0 commit comments

Comments
 (0)