- Home /
Question by
boehmz90 · Dec 14, 2013 at 05:50 AM ·
iosunity iosalphablend
Alphablend Always on in iOS GUI?
I want to have textures in OnGUI slide over each other without showing anything underneath them. I set the alphablend parameter to false for GUI.DrawTexture and it works when testing on Mac and PC, but alphablend seems to turn on when I build to iOS. I can see through the texture to partially view what's underneath it.
Relevant Code: (the button text in DoWindow can be seen underneath theRenderTexture only on iOS)
void OnGUI()
{
GUI.BeginGroup( background, guiStyleForMenu );
DoWindow(0);
GUI.EndGroup();
Rect levelRect = new Rect( menuOffset.x - Screen.width, 0, Screen.width, Screen.height );
GUI.DrawTexture( levelRect, theRenderTexture, ScaleMode.ScaleAndCrop, false );
}
}
void DoWindow(int id)
{
GUI.color = Color.white;
GUILayout.BeginVertical( GUILayout.ExpandHeight(true) );
for (int i = 0; i < numLevelsUnlocked; i++)
{
string title = allTitles[i];
if (GUILayout.Button(title))
{
//do stuff with that title
}
}
GUILayout.EndVertical();
}
Comment
Your answer
Follow this Question
Related Questions
Can the GameKit plugin establish BlueTooth communication between MacOS and iOS? 0 Answers
is there a way to link .NET dll base on platform? 0 Answers
IOS first person controller? 2 Answers
Transparent shader with alpha 1. Still a performance hit? 2 Answers
Adcolony for iOS not working in xCode 5 3 Answers