Hello everyone, I have a 2 cameras, and I have a prefab appearing on the screen rendered by the secondary cam. When clicked on the prefab(mouseDrag) I want to attach the position of the prefab to the mouse position. But I want that the main cam renders the prefab after Dragged, so I need to switch the cam that renders my prefab. any hints?
asked May 28 '12 at 12:14 AM
I suppose you select which camera renders the object by defining a culling mask for the respective layer the object is in. To switch the rendering camera for that GameObject, just change the layer property to something cam1 will render but cam2 won't
answered May 28 '12 at 12:59 AM