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

Commit e7b2d2c

Browse files
Used ToString to display extra data for objects without propertydrawers
1 parent d8b9ff6 commit e7b2d2c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
[CustomEditor(typeof(BaseVariable<>), true)]
88
public class BaseVariableEditor : Editor
99
{
10-
private IBaseVariable Target { get { return (IBaseVariable)target; } }
10+
private BaseVariable Target { get { return (BaseVariable)target; } }
1111

1212
private SerializedProperty _valueProperty;
1313
private SerializedProperty _developerDescription;
@@ -41,7 +41,9 @@ public override void OnInspectorGUI()
4141
}
4242
else
4343
{
44-
EditorGUILayout.LabelField("Cannot display value. No PropertyDrawer for " + Target.Type);
44+
string labelContent = "Cannot display value. No PropertyDrawer for (" + Target.Type + ") [" + Target.BaseValue.ToString() + "]";
45+
46+
EditorGUILayout.LabelField(new GUIContent(labelContent, labelContent));
4547
}
4648

4749

0 commit comments

Comments
 (0)