Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
TypeScript
how to find the number of objects with the same tag in unity
Robin
Programming language:
TypeScript
2021-05-05 16:11:07
0
Q:
how to find the number of objects with the same tag in unity
door_number_three
Code:
TypeScript
2021-09-13 20:03:00
if(GameObject.FindGameObjectsWithTag("Enemy").Length > 20) { // Do something }
2
Tags
unity
number
object
unit
find
how
objects
Related
unity find all objects with script
get all the game objects in a scene unity
how to compare distance between 2 objects unity
New to Communities?
Join the community