How to remove components through code in Unity? -- Unity
How to remove components through code in Unity? -- Unity
using Destroy
[syntax]
Destroy(<componentName>);
where componentName is the component that will be destroyed.
you can get a component by GetComponent method.
more details on:
Comments
Post a Comment