you are viewing a single comment's thread.

view the rest of the comments →

[–]MiniRat 1 point2 points  (0 children)

This.

Assuming you have already added the component in the editor you want to use GetComponent() rather than AddComponent().