I’ve already looked for duplicate forum posts, and none have this question or an answer.
In a timer, I am creating a Widget and inserting it into a Wrap Box. This created widget has no canvas and consists of only a Rich Text Box. I set the text of the Rich Text Box before adding as a child to the wrap box.
I am trying to get the horizontal size of the created Widget, but have not been able to find a way to access this. The horizontal size is variable for each created instance, which is why I am trying to access it. Here is a screenshot and some of the things I have tried:
I can’t access the canvas slot panel as it always returns null. I suspect this is because the widget itself has no canvas or because it is a child of a wrap box and not the canvas.
I have tried the Force Layout Prepass node on every widget involved and have tried to get Desired Size, but Desired Size always returns 0. There is no “Get Size” node unless dragged out from a null Slot as Canvas Slot node. I can’t put the Rich Text Block in a canvas, because then it will no longer work in a wrap box.
Does anyone out there know how I can get the width of my created widget / wrap box child?