The following line gives Ambigous Reference Resources in one script but not another.
GameObject.Find("PauseSong").renderer.material.mainTexture = Resources.Load("bluepause");
The two scripts are in the same folder.
The bluepause.jpg is in the resources folder.
What would cause that?
One script was importing System
which I guess has its own Resources keyword which was conflicting.
I had to tell it which Resources to use System or UnityEngine
This fixed it.
GameObject.Find(“PauseSong”).renderer.material.mainTexture = UnityEngine.Resources.Load(“bluepause”);