Search Unity

Switching layers

Discussion in 'Scripting' started by Maltory, Aug 22, 2017.

  1. Maltory

    Maltory

    Joined:
    Jul 13, 2017
    Posts:
    2
    So I have a project that I am working on. It follows this video tutorial and the idea behind it.

    The problem that I am having is that while my view changes the player object is in the other layer. I was wondering what possible solutions there are. I thought about changing the player to the active camera's layer, but as a unity newbie I do not know how to call that in to existence.
    Any help would be greatly appreciated.
     
  2. makeshiftwings

    makeshiftwings

    Joined:
    May 28, 2011
    Posts:
    3,350
    Could you put the player on its own separate layer and have both cameras show that layer?
     
  3. Maltory

    Maltory

    Joined:
    Jul 13, 2017
    Posts:
    2
    yes but once again you would have to deal with being able to interact with objects on the other two layers selectively
     
  4. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860