How would I do this with a line renderer...

Hi, I have a circle collider on a player with isTrigger set to true so whenever
the player goes through other objects I need to have a line renderer spawned
for how many objects are currently in the players circle collider. Then I have the line renderers attach themselves to those objects. Then they detach from the objects when they leave the circle collider without having more than one line renderer attached to the same object.
Any ideas on how to do this? Appreciate any help :slight_smile:

OnTriggerEnter spawn a line renderer on the object that entered the circle (or just create another object for that, doesnโ€™t matter). Then set line renderer first position to that object position and last position to whenever you want (probably player)

OnTriggerExit destroy that line renderer