Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
TypeScript
how to destroy bullets when they hit a collider unity 2d
Mark Fitzgerald
Programming language:
TypeScript
2021-05-13 19:10:38
0
Q:
how to destroy bullets when they hit a collider unity 2d
dubfactor
Code:
TypeScript
2021-09-18 00:05:46
function OnCollisionEnter(){ Destroy (gameObject); }
0
Tags
unity
unit
how
when
Related
unity how to make two objects not collide
unity objects disappearing when close
how to make a list of gameobjects unity and make them move separatly
New to Communities?
Join the community