Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

LayoutGroup.SetLayoutInputForAxis

Switch to Manual
protected function SetLayoutInputForAxis(totalMin: float, totalPreferred: float, totalFlexible: float, axis: int): void;

Parameters

totalMinThe min size for the layout group.
totalPreferredThe preferred size for the layout group.
totalFlexibleThe flexible size for the layout group.
axisThe axis to set sizes for. 0 is horizontal and 1 is vertical.

Description

Used to set the calculated layout properties for the given axis.