TableList tagged array and list fields can show no children

Issue #517 new
Jeremy Swigart
created an issue

Using Unity 2018.3.8f1

Adding TableList attribute to a list or array can sometimes not render the table properly. Rendering it in list view shows the children properly

Add the following snippet to the bottom of CharacterWrapper in the RPG example(same issue if this is a TestObject[])

        [ShowInInspector, TableColumnWidth(400, false), TableList]
        public List<TestObject> TestObjects { get { return testObjects; } set { testObjects = value; EditorUtility.SetDirty(this.character); } }

where

private List<TestObject> testObjects = new List<TestObject>();

and

    [Serializable]
    public class TestObject
    {
        [OdinSerialize]
        public float TestField { get; set; }

        public TestObject(float testfield)
        {
            TestField = testfield;
        }
    }

Comments (2)

  1. Log in to comment