[FREE] AutoSizeComments

Hello there, I am having a nesting issue with comment boxes within comment boxes, this is inside the unreal material editor (UE 5.4.3)

I will use names for things to try to make it easier to visualize:

  1. Create some nodes such as for controlling uv’s then add them to a comment box called UV Controls
  2. Add a new comment box called Global Options, select the UV Controls comment box then click the plus sign on the bottom left of the Global Options box so that the UV Controls box will become a nested child of the Global Options box.
  3. Create additional nodes and select them and press the plus sign in the bottom left of UV Controls box to add the new nodes to this box.

This is where it starts to get unexpected, it seems like what will happen is it will then make all the nodes in UV Controls actually be directly under Global Options and no longer actually children of UV Controls itself, sometimes UV Controls will become the main parent and Global Options will become a child of UV Controls instead of UV Controls remaining a child of Global Options.

Im not sure if there are options to control this behavior or if it would require coding changes but seems like it would make sense that nodes are children of a specific box, and that box can be a child of another box, but still have it’s own children instead of the highest level box adopting the nodes of the child box, does this make sense?

When it works the way it currently does you cant move the boxes around properly or add nodes without the hierarchy changing unexpectedly. There may be a limitation in Unreal that forces this behavior but just wanted to drop a note to see if there is or could be a solution.

Thank you so much for your time and just let me know if you need any more info or clarification, I know it is kind of complicated so I may not have explained it very well. :slight_smile: