Search Results for

    Show / Hide Table of Contents

    Class AutoColumnGridLayout

    Grid layout that automatically sets column count based on available parent width.

    Inheritance
    object
    UnityEngine.Object
    UnityEngine.Component
    UnityEngine.Behaviour
    UnityEngine.MonoBehaviour
    UnityEngine.EventSystems.UIBehaviour
    UnityEngine.UI.LayoutGroup
    UnityEngine.UI.GridLayoutGroup
    AutoColumnGridLayout
    Namespace: Global
    Assembly: Dew.Core.dll
    Syntax
    [AddComponentMenu("Layout/Auto Column Grid Layout")]
    [ExecuteAlways]
    public class AutoColumnGridLayout : GridLayoutGroup

    Properties

    AutoAdjustColumns

    Declaration
    public bool AutoAdjustColumns { get; set; }
    Property Value
    Type Description
    bool

    MaxColumns

    Declaration
    public int MaxColumns { get; set; }
    Property Value
    Type Description
    int

    MinColumns

    Declaration
    public int MinColumns { get; set; }
    Property Value
    Type Description
    int

    Methods

    OnDidApplyAnimationProperties()

    Declaration
    protected override void OnDidApplyAnimationProperties()
    Overrides
    UnityEngine.UI.LayoutGroup.OnDidApplyAnimationProperties()

    OnEnable()

    Declaration
    protected override void OnEnable()
    Overrides
    UnityEngine.UI.LayoutGroup.OnEnable()

    OnRectTransformDimensionsChange()

    Declaration
    protected override void OnRectTransformDimensionsChange()
    Overrides
    UnityEngine.UI.LayoutGroup.OnRectTransformDimensionsChange()

    OnTransformParentChanged()

    Declaration
    protected override void OnTransformParentChanged()
    Overrides
    UnityEngine.EventSystems.UIBehaviour.OnTransformParentChanged()

    UpdateColumnCount()

    Updates the column count based on the available parent width and cell size.

    Declaration
    public void UpdateColumnCount()

    Extension Methods

    DewGUI.SetExpandHeight<T>(T, bool)
    DewGUI.SetExpandHeight<T>(T, float)
    DewGUI.SetExpandWidth<T>(T, bool)
    DewGUI.SetExpandWidth<T>(T, float)
    DewGUI.SetHeight<T>(T, float)
    DewGUI.SetText<T>(T, string)
    DewGUI.SetTextLocalized<T>(T, string)
    DewGUI.SetWidth<T>(T, float)
    In This Article
    Back to top Shape of Dreams API Documentation