Search Unity

How to set UI anchor presets through c# script

Discussion in 'UGUI & TextMesh Pro' started by grayfalcon25, Apr 9, 2020.

  1. grayfalcon25

    grayfalcon25

    Joined:
    Apr 2, 2019
    Posts:
    3
    Very simple question, but how can I set Anchor presets in a c# script? I tried `anchorMax` but maybe I did it wrong.
    Thanks in advance!
     
  2. Trae_1P

    Trae_1P

    Joined:
    Apr 13, 2021
    Posts:
    3
    pumpkinszwan and tonyomendoza like this.