I keep getting exceptions from SaintsField when I'm working with arrays that has [SerializeReference, ReferencePicker] attributes , specifically removing elements. I need to deselect and reselect the object I'm working with to refresh the inspector all the time.
Try adding this script and add some elements to the arrays then remove some, I get errors very frequently.
public class Test : MonoBehaviour
{
[SerializeReference, ReferencePicker] public TestData[] TestData;
}
[Serializable]
public class TestData
{
[SerializeReference, ReferencePicker] public InternalTestData[] InternalTestData;
[MinMaxSlider(0, 100)] public Vector2 TestMinMax = new Vector2(0, 2);
}
[Serializable]
public class InternalTestData
{
[MinMaxSlider(0, 100)] public Vector2 InternalTestMinMax = new Vector2(0, 2);
}
I keep getting exceptions from SaintsField when I'm working with arrays that has
[SerializeReference, ReferencePicker]
attributes , specifically removing elements. I need to deselect and reselect the object I'm working with to refresh the inspector all the time.Try adding this script and add some elements to the arrays then remove some, I get errors very frequently.