среда, 13 октября 2021 г.

How to get widget size in Unreal Engine

The problem is absurd. You can't just get a size of widget before it will tick for a first time. I've met this problem when was writing a custom grid component. The component holds a set of widgets and should align them in a grid with cols count evaluating dynamically, depending on a size that widget takes on a parent widget at the moment of creation. And thats the problem.