I have a couple of nested classes exposed in the Inspector. These used to work in 2019. However, it seems in 2020 to be broken as the expanded views just overlap…
public class Modifier {
public static uint modCount;
[Tooltip("MUST BE UNIQUE PER MOD")]
public string id;
public uint hash_mod;
public EFFECTS effect;
public EFFECT_APPLICATION_TYPE type;
public float amount;
public float duration;
[Tooltip("If effect restored to original when mod ends")]
public bool isTemporary;
...
}
public class InteractionDefinition {
public static uint defCount;
[HideInInspector]
public uint hash_interDef;
public INTERACTION_TYPE type;
public float proximity = 3;
public TRIGGER_TYPE trigger;
public ENTITY_TYPE[] appliesTo;
[SerializeField]
public Modifier[] effectModTarget;
[SerializeField]
public Modifier[] effectModSelf;
public Entity.LIFE_STATE terminationState = Entity.LIFE_STATE.none;
}
[Header("Interactions")]
public InteractionDefinition[] interDefinitions;
How can I fix this? It’s essential to be able to modify the gameobjects this way.
Edit: Was a bug apparently fixed in 2020.3.7f1. However I’m on LTS 2020.3.35f1 so this is supposed to be fixed?
Edit2: This solution works:
Add the [NonReorderable] Attribute to disable the reorderable list rendering. I guess this was a new Inspector feature added and it’s still dodge.
