Search Unity

How to change Layer by script?

Discussion in 'Scripting' started by leegod, Jun 27, 2010.

  1. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,476
    As the title, how?

    Not a tag, but a Layer.


    I want to change some object's layer so it can be shown at some condition, and turn off at some condition.
     
    SaSha_K and Ash-Blue like this.
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401