Line Renderer Help

Hi guys! I’m a newbie on Unity and i need some help. I’m trying to use Line Renderer as a “hook” but i have two issues:
the first one is this: I need to hide the line renderer at the start if you have any idea how to do it i would be very grateful.

The second problem is that if there is a platform between to gameobject the Line Renderer is bugged, i mean it doesn’t go away.


Here some images… Thanks for the help guys!

gameObject.SetActive() will make a game object and all it’s children in the hierarchy (but not parent) disappear (felst) and re-apprear (true).

I’ve fixed the first problem simply by setting the positions of the elements on 0,0,0 but if i move my two objects is still there. Do you know how to reset to 0 the positions after i move it. I don’t know if i explained myself good. Sorry

I’ve taken some images!

I’ve done it sorry to bother lol by the way i still have the second problem :frowning:

If the line renderer is on world space you need to give it the same position as the object, you can use local space and then it will be relative to the object, (0,0,0) is gonna be exactly where the object is