Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Switching out objects - C#

Discussion in 'Getting Started' started by brownka4, Mar 27, 2015.

  1. brownka4

    brownka4

    Joined:
    Mar 27, 2015
    Posts:
    1
    Hello,

    New to Unity. I basically need to build an application that lets someone switch out clothes. I have figured out how to Instantiate an object into my game, but I can't seem to figure out how to reference that object so that I can destroy it and replace it with another object. If anyone could point me in the right direction it would be very much appreciated. Once I can switch out between 2 objects I shouldn't have too much trouble building it to be driven by Arrays, I just can't seem to get that first step figured out.

    Thanks!