I am trying to find all active and nonactive gameObjects which have a common script added to them. I am able to find all active gameObjects but unfortunately the inactive ones do not get viewed by my script. How can I overcome this?
public myScript[] commonScripts;
void Start() {
commonScripts = FindObjectsOfType(typeof(myScript)) as myScript[];
}