- Home /
Question by
ElMigele · Apr 04, 2021 at 10:32 PM ·
recttransform
Get selected corner or border of RectTransform
I'm making a tool for fixed game object resize via RectTransform. But I have a problem:
If RectTransform anchor is (0, 0) and I drag left bottom corner - the game object start move. The same situation with left and bottom borders of RectTransform. But if I drag right upper corner the game object stay calm.
Is any event or property to get know what corner or border of RectTransform was selected to fix the problem.
Comment