Quantcast
Channel: Answers for "Searching a List of GameObjects by name"
Browsing latest articles
Browse All 4 View Live

Answer by dorpeleg

Just use loop: for(int i=0; i

View Article


Answer by ZGTR

Easily done using Linq: using System.Linq; GameObject temp = list.Where(obj => obj.name == "Sword").SingleOrDefault(); This will return your game object if found. Otherwise, null. You have to import...

View Article

Browsing latest articles
Browse All 4 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>