Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C#
how to remove a component from an object in unity
tbsever
Programming language:
C#
2021-05-16 13:50:49
0
Q:
how to remove a component from an object in unity
AnonyTech
Code:
C#
2021-07-17 16:25:23
Destroy(GetComponent<TheComponentYouWantToDestroy>());
7
Alex Kisel
Code:
C#
2021-01-26 22:53:46
Destroy (gameObject);
6
Tags
unity
object
remove
unit
how
component
Related
how to delete transition unity
disable a component unity
how to delete buttons in c# unity
make an object disappear from a c# script unity
how to destroy a gameobject in c#
unity remove parent
how to destroy a gameobject after some hits in unity 3d
unity remove gameobject
New to Communities?
Join the community