Im using C#:
I have a GUI Texture in my Hierarchy called “SplashScreen_BG” that is Enabled at start.
I have a script on my camera and would like this script to disable the SplashScreen_BG when a certain button is pressed.
Unity’s reference pages do not show how to interact with a GUI Texture unless the script is directly on that texture. That’s not the case for me. Any suggestion on how to reference a GUI Texture?
Do I reference it as a game object? Maybe like:
GameObject SplashScreen;
SplashScreen = GameObject.Find("SplashScreen_BG");
I’ve also tried:
public Texture2D SplashScreen_BG;
guiTexture.texture = SplashScreen_BG;
But it can’t find the GUI Texture.