Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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!