- Home /
How can I hide an object line rendered in a minicam?
I have an animal moving in my scene. I have a line renderer attached to it to draw an oval around it so the animal appears larger and easier to click on. I have a minimap which shows a zoomed in view. Here the animal is large so I do not want to see the line around the animal. Is there a way to hide this component (the line renderer) of the object in the minimap? I am thinking of layers but that seems to apply to the whole object (animal). What I really need is a layer for a component of the object. Any suggestions? Thank you.
Answer by jstopyraIGG · Feb 13, 2019 at 07:24 AM
Add the line renderer as the child object, and set the later of the child object.
Your answer
![](https://koobas.hobune.stream/wayback/20220612191622im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity2D show only part of line structure that player touches / collides with 0 Answers
Hide GUI while switchcam 3 Answers
How to hide different team icons 0 Answers
Can I hide/show objects by layer or tags? 3 Answers
LineRenderer.SetPositions Error 1 Answer