Skip to content

TypeScript code snippet – How to find the number of objects with the same tag in unity?

 if(GameObject.FindGameObjectsWithTag("Enemy").Length > 20) {    // Do something }
See also  Python code snippet - How to find version?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.