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

How to change Layer by script?

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

  1. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,472
    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