Legacy Documentation: Version 4.6.2
Language: English
  • C#
  • JS
  • Boo

Script language

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

UI.LayoutGroup.GetTotalPreferredSize

Switch to Manual
protected function GetTotalPreferredSize(axis: int): float;

Parameters

axis The axis. 0 is horizontal and 1 is vertical.

Returns

float The preferred size.

Description

The preferred size for the layout group on the given axis.