Search Unity

Game Object Selection/Enable & Disable Render

Discussion in 'Scripting' started by FleshKnot, Jan 24, 2015.

  1. FleshKnot

    FleshKnot

    Joined:
    May 4, 2014
    Posts:
    67
    So I'm currently working on a project where I have a scene that has a simple ship for the player to control. What I'm looking to do is to add a UI button that brings up a menu where the player can select a new ship and it will enable the new ship to be rendered while making the render of the previous ship false. I can handle the UI asset but I'm stuck with the render enable/disable.
     
  2. fire7side

    fire7side

    Joined:
    Oct 15, 2012
    Posts:
    1,819