❔ How can I delete a component
For example:
AddComponent<RigidBody>();
//for add rigid body
//But how i delete that rigid body¿
6 Replies
Destroy(GetComponent<...>())
$codeTo post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
If your code is too long, post it to: https://paste.mod.gg/$unity
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.