Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ILayoutElement.preferredWidth

public float preferredWidth;

Description

The preferred width this layout element should be allocated if there is sufficient space.

preferredWidth can be set to -1 to remove the size.