- Home /
Question by
gantolandon · May 17, 2015 at 08:20 PM ·
uirecttransform
(UI 4.6) How to find UI panel's corners?
I'm trying to spawn some UI elements of a UI panel. To do this, I need to find its corners. Nothing I tried works.
float y = me.rect.min.y;
float x = me.rect.min.x;
This gives me the proper x, but y is somewhere in the 1/8 of the panel instead.
float y = me.offsetMin.y;
float x = me.offsetMin.x;
This gives me the middle of the panel instead.
Comment