Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

StretchMode

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Indicates how the size of a stretchable column in this collection should get automatically adjusted as other columns or its containing view get resized. The default value is StretchMode.Grow.

Properties

Grow The size of stretchable columns is automatically and proportionally adjusted only as its container gets resized. Unlike StretchMode.GrowAndFill, the size is not adjusted to fill any available space within its container when other columns are resized.
GrowAndFill The size of stretchable columns is automatically adjusted to fill the available space within its container when this container or other columns get resized