C# Class LeopotamGroup.Gui.Layout.GuiGrid

Inheritance: UnityEngine.MonoBehaviour
Mostra file Open project: Leopotam/LeopotamGroupLibraryUnity

Public Properties

Property Type Description
AnimationTime float
IsRowVerticalOriented bool
ItemHeight float
ItemWidth float
ItemsAlignment GuiAlignment
ItemsInRow int

Public Methods

Method Description
Update ( ) : void
Validate ( ) : void

Force revalidate alignment.

Private Methods

Method Description
AlignmentOffset ( GuiAlignment alignment, float width, float height ) : Vector2

Method Details

Update() public method

public Update ( ) : void
return void

Validate() public method

Force revalidate alignment.
public Validate ( ) : void
return void

Property Details

AnimationTime public_oe property

Animation time for items reposition. If 0 - no tweening.
public float AnimationTime
return float

IsRowVerticalOriented public_oe property

Is row vertical oriented. By default orientation is horizontal.
public bool IsRowVerticalOriented
return bool

ItemHeight public_oe property

Height of item. Negative value changes direction.
public float ItemHeight
return float

ItemWidth public_oe property

Width of item. Negative value changes direction.
public float ItemWidth
return float

ItemsAlignment public_oe property

Item bounds alignment.
public GuiAlignment ItemsAlignment
return GuiAlignment

ItemsInRow public_oe property

Items count in row. If 0 - no wrapping.
public int ItemsInRow
return int