Search Unity

GridLayoutGroup

Discussion in 'UGUI & TextMesh Pro' started by BYELIK, Aug 22, 2014.

  1. BYELIK

    BYELIK

    Joined:
    Mar 25, 2012
    Posts:
    15
    Hello
    How i can got access to GridLayoutGroup component via the script?
    Thanks in advance.
     
  2. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
    Code (CSharp):
    1. using UnityEngine.UI;
    Code (CSharp):
    1. var grid = GetComponent<GridLayoutGroup>();
     
    runevision likes this.
  3. BYELIK

    BYELIK

    Joined:
    Mar 25, 2012
    Posts:
    15
    Thanks!!!