I want to make an option menu and make a toggle specular and etc. But i need to apply the settings for all gameobject in all scene.
to get all GameObjects
public GameObject[] AllGo;
// Use this for initialization
void Start () {
AllGo= GameObject.FindObjectsOfType(typeof(GameObject)) as GameObject[];
foreach (GameObject go in AllGo)
{
go.SendMessage("message");
}
}
Transform arrTransforms = Resources.FindObjectsOfTypeAll().Where((s) => (s.hideFlags == HideFlags.None)).ToArray();