Search Unity

Question about texture selection..

Discussion in 'Scripting' started by mmarsyada, Dec 1, 2013.

  1. mmarsyada

    mmarsyada

    Joined:
    Dec 18, 2012
    Posts:
    6
    I am new to scripting so please forgive my ignorance.

    When I create a script with a public variable for an audio clip such as this :

    public AudioClip[] myAudioClip;

    I get a drop down arrow "size" that allows me to add multiple "elements" as shown in the picture below.



    However when I add a public variable for adding a texture I only get a single box to add one texture.

    Is it possible to add multiple textures with a drop down arrow?

    Perhaps I am missing the entire concept, but I have scoured the forums for the answer and believe I am looking for the wrong thing.

    Using Unity Pro 4.3 and C#.

    Thanks in advance,
    Mike Marsyada
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    The example you have is an array of audio clips, not just one. If you want multiple textures in the same manner, then use an array for that too.

    --Eric