Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
unity how to check how many gameobject of a tag exists
Selio
Programming language:
Whatever
2021-07-17 00:07:32
0
Q:
unity how to check how many gameobject of a tag exists
Sohail
Code:
Whatever
2021-09-13 01:55:07
if(GameObject.FindGameObjectsWithTag("Enemy").Length > 20) { // Do something }
0
Tags
unity
object
check
many
how
gameobject
game
Related
check if object has parent unity
New to Communities?
Join the community