Rect Contain (in Vector2 size, TextFlag align, bool stretch)

Parameters

NameTypeDescription
in size Vector2 Size of the rectagle (image) to try to contain within this frame rectangle.
align = 132 TextFlag Where to align the given box within this rectangle.
stretch = False bool Whether to stretch the given rectagle (image) should its size be smaller than largest rectagle (image) size possible within this rectangle (frame).

Returns

TypeDescription
Rect A rectangle with correct position and size to fit within the "parent" rectangle.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.