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