
In both pictures you can see “Definitions” is expanded, and shows there are 2 items. However, the items do NOT show up in unless I click and drag from the right spot showing they are highlighted. I’m seeing this all over the place in the inspector for many scriptables. Restarting Unity didn’t fix it. Upgrading from Unity 2021.20->23 did not resolve it.
This particular one has a custom inspector, but that have this issue do not. The code for this one:
public class VisualThoughtPointCollection : ScriptableObject
{
public List<VisualThoughtPointDefinition> Definitions = new List<VisualThoughtPointDefinition>();
}
public class VisualThoughtPointDefinition : MonoBehaviour
{
public string Key;
public IslandKey[] Islands;
}
[CustomEditor(typeof(VisualThoughtPointCollection))]
public class VisualThoughtPointCollectionEditor : Editor
{
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
if (GUILayout.Button("Gather All In Project"))
{
Gather(); //Gather does nothing with UI, it searches all assets in file system with particular definition states.
}
}
}
Sometimes they show up for a little while, and then after using it once or twice it just dissapears. It was just a couple things before, but has been affecting all sorts of things.
It does not appear to have affected individual fields yet. Only items inside Lists/scrollable areas in the inspector. I could be mistaken, but I think all the affected areas have been subclasses. I.e. in the monobehaviour, in some cases sub classes of monobehavious (public/serializable).
Any ideas? trying to searh for this comes up with lots of conflicting challenges.