- Home /
C# Reset EdgeCollider2D.Points.Length and LineRenderer.Positions.Length to 0
Is there a way to reset EdgeCollider2D.Points.Length and LineRenderer.Positions.Length to 0? I can't assign EdgeCollider2D.Points.Length since it's read only and I can't find LineRenderer.Positions.Length. My guess it's called something else. I just don't know what.
Ok so I tried assigning GetComponent() and GetComponent() as new but I found that you can't assign them like that because you're using a method to get the component and not the component itself. I then tried creating variables and assigning them as new but that makes the variable itself new not the component.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Object follows a moving ellipse 0 Answers
Distribute terrain in zones 3 Answers
OnCollisionEnter2D is called but the actually collision isn't resolving. 0 Answers
Creating a LineRenderer: its always null 2 Answers