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.

HorizontalOrVerticalLayoutGroup.CalcAlongAxis

protected void CalcAlongAxis(int axis, bool isVertical);

Parameters

axis The axis to calculate for. 0 is horizontal and 1 is vertical.
isVertical Is this group a vertical group?

Description

Calculate the layout element properties for this layout element along the given axis.