Hi, I’m trying to call a function on all game objects in the scene. I’m trying to use BroadcastMessage but since the game objects are not child objects or ancestors of the script that is running, nothing is happening. How would I call this function on every object in the scene?
var allObjects = FindObjectsOfType(GameObject);
for(var go : GameObject in allObjects){
//do something
}