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

Popular posts from this blog

How to create a GameObject in Unity? -- Unity