Is there a method or way to access/iterate all GameObjects in a scene at runtime without knowing the names, etc.?
Thanks.
– Clint
Is there a method or way to access/iterate all GameObjects in a scene at runtime without knowing the names, etc.?
Thanks.
– Clint
foreach (GameObject go in Object.FindObjectsOfType(typeof(GameObject))) {
...
}
But bear in mind that FindObjectsOfType is a slow operation.
Thanks Talzor!
Regards,
– Clint