Hey Guys,
i dont understand what is this rectangle around the square- its appears to be like some bounding box.- but i dont know where its coming from?
is it from a specific component or a 2D UI element?
Is it not under your hierarchy or inspector?
Isn’t that a visual representation of a component/part of the canvas?
1 Like
Yes, that is the Rect Transform of “calendar_square”, probably has a non-zero number in the “Bottom” field of “Panel”, giving the white image that padding.
All UI elements under a Canvas are positioned relative to their parent. The Rect Transform component defines how it will be anchored and positioned relative to the parent’s dimensions or sides and corners. You’re seeing the parent’s Rect Transform as the white outline, and then the currently selected object’s Rect dimensions with the blue dots on the corners.
Thanks so much!!!
1 Like