We’re making a UI heavy app, and as such we want to define UI elements in one place and use them throughout our GUI objects. We can do this pretty well with templates today. However, sometimes I would like to nest templates to avoid duplicate information.
Here’s an example: I want to define a button GUI object. Then define a big version of it (e.g. changing size and corner curving). Finally I want to define a version of the big button with an arrow icon on it.
This can be done right now and results in something like this:
There’s a minor issue with this though where the nesting results in a somewhat messy node structure. This makes it a bit cumbersome to have scripts access nodes as the code needs to take into account a variable nesting depth.