Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C#
how to destroy a gameobject in c#
Jeremy
Programming language:
C#
2021-04-24 00:18:47
1
Q:
how to destroy a gameobject in c#
Harsha Nalluru
Code:
C#
2021-04-08 20:19:31
Destroy(gameObject); // destroys the game object attached to the script
2
Tags
object
how
gameobject
game
Related
how to destroy clones in unity c#
how to disable a gameObject unity c#
delete all clones unity
unity remove gameobject
how to destroy a gameobject after some hits in unity 3d
how to destroy gameobject on trigger collision unity
how to destroy a gameobject after a sertain amount of seconds
how to remove a component from an object in unity
in unity i want to destroy a gameobject when it hits the edge of the screen
destroy all objects under parent unity c#
unity destroy all objects with tag
make an object disappear from a c# script unity
New to Communities?
Join the community