Nested [TableList] Error!

Issue #273 resolved
Former user created an issue

When I try to have nested TableLists in my editor, whenever I add an element to the second list(nested one), the editor just throws exceptions and errors.

Code :

public class APowerupDatabaseWindow : OdinEditorWindow
    {
        [TableList]
        public List<AClass> SomeTableData = new List<AClass>();

        /// <summary>
        /// Show the window
        /// </summary>
        [MenuItem ("Config/Active Powerup Database")]
        public static void ShowWindow()
        {
            GetWindow(typeof(APowerupDatabaseWindow));
        }
    }

    public class AClass
    {
        [GUIColor(0f, 1f, 0f)]
        public bool activate;

        [TableList]
        public List<BClass> cl = new List<BClass>();

        [Button]
        public void AddStuff()
        {

        }

        [Button]
        public void DoStuff()
        {

        }
    }

    public class BClass
    {
        [GUIColor(0f, 1f, 0f)]
        public bool Test1;

        [Button]
        public void Test2()
        {

        }
    }

Comments (1)

  1. mSkull001

    This has been resolved for patch 1.0.6.0, which will be out soon. If you need the fix now you can contact us by mail with your invoice number so we can send you a new build asap.

  2. Log in to comment