- Home /
Question by
RoeeHerzovich · Oct 07, 2020 at 08:54 PM ·
c#inspectoreditor-scriptingrecursion
Display Revursive types in custom editor (inspector)
I have a tree-structured type that is of course recursive, and I made a reader for it(my own purposes)
But I want the reader to have a custom editor I can use. I managed to make a display for the tree but since it is recursive I can make those branches inside each other over and over again.
My question is: How do I display in the editor(inspector) a recursive type without infinitely writing the code over and over again?
My types(to help answer the question)
Branch - containing a list of splits and a value Split - containing a parent branch and a list of sub-branches
Editor is on a reader which receives a Brach reads all the values and splits and their branches and etc..
Comment