Search Unity

Hiding values in RectTransform

Discussion in 'Scripting' started by stevenatunity, Aug 30, 2019.

  1. stevenatunity

    stevenatunity

    Joined:
    Apr 17, 2015
    Posts:
    114
    Hi,

    Is there a way to hide values in the RectTransform script?

    Thanks,
    Steven
     
  2. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,188
    What do you mean? And for what purpose?

    From the inspector? You want to remake variables private?
     
  3. stevenatunity

    stevenatunity

    Joined:
    Apr 17, 2015
    Posts:
    114
    Yes, just to hide the values in the Inspector. I'm writing a script to control 2D positions.
     
  4. stevenatunity

    stevenatunity

    Joined:
    Apr 17, 2015
    Posts:
    114