You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EditorGUILayout.HelpBox($"Item '{displayLabel}' uses an invalid DataType ({type.Name}). It must be a concrete, non-generic class to be instantiated.",MessageType.Warning);
EditorGUILayout.HelpBox($"'{displayLabel}' has no valid DataType selected in the ThemeDefinition.",MessageType.Warning);
79
+
}
80
+
else
81
+
{
82
+
EditorGUILayout.HelpBox($"Failed to initialize data for '{displayLabel}'. Ensure its DataType ({definitionItem.DataType.Type.Name}) is a concrete class with a default constructor.",MessageType.Warning);
83
+
}
84
+
85
+
using(newEditorGUI.DisabledScope(true))
86
+
{
87
+
EditorGUILayout.LabelField(displayLabel,"null");
88
+
}
89
+
}
90
+
else
91
+
{
92
+
// Fallback for any item whose Data doesn't follow the
Debug.LogWarning($"Failed to instantiate data for ThemeItem '{themeDefinitionItemName}' (Type: {dataType.Name}). Falling back to null. Exception: {e.Message}");
132
-
}
133
-
}
134
-
else
135
-
{
136
-
Debug.LogWarning($"Could not resolve DataType for ThemeItem '{themeDefinitionItemName}'. Falling back to null.");
0 commit comments