Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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!!!