in functions/testapp/Assets/Firebase/Sample/Functions/UIHandler.cs [133:173]
void OnGUI() {
GUI.skin = fb_GUISkin;
if (dependencyStatus != Firebase.DependencyStatus.Available) {
GUILayout.Label("One or more Firebase dependencies are not present.");
GUILayout.Label("Current dependency status: " + dependencyStatus.ToString());
return;
}
GUI.skin.textArea.fontSize = GUI.skin.textField.fontSize;
// Reduce the text size on the desktop.
if (UnityEngine.Application.platform != RuntimePlatform.Android &&
UnityEngine.Application.platform != RuntimePlatform.IPhonePlayer) {
GUI.skin.textArea.fontSize /= 4;
GUI.skin.button.fontSize = GUI.skin.textArea.fontSize;
GUI.skin.label.fontSize = GUI.skin.textArea.fontSize;
}
if (dependencyStatus != Firebase.DependencyStatus.Available) {
GUILayout.Label("One or more Firebase dependencies are not present.");
GUILayout.Label("Current dependency status: " + dependencyStatus.ToString());
return;
}
Rect logArea, controlArea;
if (Screen.width < Screen.height) {
// Portrait mode
controlArea = new Rect(0.0f, 0.0f, Screen.width, Screen.height * 0.5f);
logArea = new Rect(0.0f, Screen.height * 0.5f, Screen.width, Screen.height * 0.5f);
} else {
// Landscape mode
controlArea = new Rect(0.0f, 0.0f, Screen.width * 0.4f, Screen.height);
logArea = new Rect(Screen.width * 0.4f, 0.0f, Screen.width * 0.6f, Screen.height);
}
GUILayout.BeginArea(logArea);
GUIDisplayLog();
GUILayout.EndArea();
GUILayout.BeginArea(controlArea);
GUIDisplayControls();
GUILayout.EndArea();
}