- Home /
Question by
bajakh · Jun 07, 2012 at 01:34 PM ·
cameralayersdynamically
Setting a layer to a gameObject dynamically doesn't work
Hello there! I have a simple problem about the layers. I have 4 cams in my scene and a prefab and I am assiging a layer dynamically by simply myGameObject.layer = 10, I have only one camera that displays layer 10 and disabled for the other cameras, but still I see two objects which is indeed 1 object but is rendered by two cameras. what might be the mistake?
Comment
I think that we are going to need to see the snippet of code in question.