SizeConstraint (Property): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>NXTBoy Categorized |
>Camoy enum template |
||
Line 8: | Line 8: | ||
{{clear floats}} | {{clear floats}} | ||
{{Enum|The SizeConstraint Enum consists of 3 values. Say you have a square on the screen, each side is 10 pixels wide. Then you make the horizontal size of your 3D view twice as wide.| | |||
{{ | {{Enum/row|0|RelativeXY|With the SizeConstraint set to RelativeXY, the box will resize itself to match this width. Therefore, it will now be 10 pixels high, but it will also be 20 pixels wide.}} | ||
{{Enum/row|1|RelativeXX|With the SizeConstraint set to RelativeXX, the box will resize itself to match only the change in width of the 3D view. Your box will stay a square, but it will change size.}} | |||
{{Enum/row|2|RelativeYY|With the SizeConstraint set to RelativeYY, the box will resize itself to match only the change in height of the 3D view. Your box will stay a square, but it will change size.}} | |||
With the SizeConstraint set to RelativeXY, the box will resize itself to match this width. Therefore, it will now be 10 pixels high, but it will also be 20 pixels wide. | |||
With the SizeConstraint set to RelativeXX, the box will resize itself to match only the change in width of the 3D view. Your box will stay a square, but it will change size. | |||
With the SizeConstraint set to RelativeYY, the box will resize itself to match only the change in height of the 3D view. Your box will stay a square, but it will change size. | |||
}} | }} | ||
[[Category:Properties]] | [[Category:Properties]] |
Revision as of 23:23, 28 February 2011
SizeConstraint | |
Property | Enum Direction of size constraint |
Description | Sets the direction that an object can be resized in. |
Member of | GuiObject |