Search Unity

Texture change

Discussion in 'Scripting' started by LightDi, Dec 22, 2014.

  1. LightDi

    LightDi

    Joined:
    Dec 22, 2014
    Posts:
    1
    Help me please with example to change texture with button change , with a possibility to switch between them pimgpsh_fullsize_distr.png
     
  2. SubZeroGaming

    SubZeroGaming

    Joined:
    Mar 4, 2013
    Posts:
    1,008
    Have an array of textures. And then based on which button is selected, draw that texture.

    Do you have some code example you've been messing with that we could see?