Issue #273 resolved
Anonymous 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. Log in to comment