Search Unity

Simple question about public components

Discussion in 'Scripting' started by ADNCG, Aug 29, 2014.

  1. ADNCG

    ADNCG

    Joined:
    Jun 9, 2014
    Posts:
    994
    I'm accessing a different script on a different gameobject in c# to change a few variables. I've set the integers im changing to: public int intX;.

    I actually have quite a bit of these and it's inconvenient to have them all listed in the inspector. Is there a way to make it so that these vars wouldn't display in the inspector, if that makes any sense?
     
  2. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,717
  3. ADNCG

    ADNCG

    Joined:
    Jun 9, 2014
    Posts:
    994