Making a Line Renderer only visible to one Camera
Hello there. I am making an fps game where two cameras are needed per player (one for the world and one for the first person graphics). when using the line renderer, both cameras pick up the line which means that one of the lines is hideously out of place, even thought the object the line renderer is on is on a layer invisible to one camera. Does anyone know how to make it so only one of the two cameras sees the line? thanks!
Answer by irvingmw · Jan 17, 2020 at 01:50 AM
Might be too late, but the only solution I found was attaching the Line Renderer to an empty game object as a child of the object that you wish to have the line work with. Then changing the layer of the empty game object with the line renderer to some name i.e. "Hide My Line" layer, and then having your camera culling mask in the inspector ignore that named layer.
Your answer
Follow this Question
Related Questions
Line Renderer issue 0 Answers
Line Renderer for golf game 2 Answers
Set the username with an inputfield ? 3 Answers
How do I start a Coroutine without having an instance of the script? 1 Answer
Player Movement - Not moving at all 3 Answers