// GUI functions public static void displayHeader() { GUIStyle whiteGround = new GUIStyle(GUI.skin.box); whiteGround.normal.background = SketchfabUI.MakeTex(2, 2, new Color(1f, 1f, 1f, 1f)); GUILayout.BeginHorizontal(whiteGround, GUILayout.Height(75)); _logger.showLoginUi(); GUILayout.FlexibleSpace(); // If banner available, display it if (bannerTexture != null) { GUILayout.BeginVertical(); GUILayout.FlexibleSpace(); if (GUILayout.Button(bannerTexture, _ui.getSketchfabLabel())) { Application.OpenURL(Urls.storeUrl); } GUILayout.FlexibleSpace(); GUILayout.EndVertical(); } GUILayout.FlexibleSpace(); GUILayout.BeginVertical(); GUILayout.FlexibleSpace(); GUILayout.Label(Resources.Load("SketchfabGrey") as Texture2D, GUILayout.Height(40), GUILayout.Width(190)); GUILayout.FlexibleSpace(); GUILayout.EndVertical(); GUILayout.EndHorizontal(); }
// GUI functions public static void displayHeader() { GUILayout.BeginHorizontal(GUILayout.Height(75)); GUILayout.BeginVertical(); GUILayout.Space(5); _logger.showLoginUi(); GUILayout.Space(5); GUILayout.EndVertical(); GUILayout.FlexibleSpace(); // If banner available, display it if (bannerTexture != null) { displayBanner(); } GUILayout.FlexibleSpace(); GUILayout.BeginVertical(); GUILayout.Space(5); GUILayout.FlexibleSpace(); GUILayout.Label(Resources.Load("SketchfabWhite") as Texture2D, GUILayout.Height(40), GUILayout.Width(180)); GUILayout.FlexibleSpace(); GUILayout.Space(5); GUILayout.EndVertical(); GUILayout.Space(5); GUILayout.EndHorizontal(); }
// GUI functions public static void displayHeader() { GUIStyle whiteGround = new GUIStyle(GUI.skin.box); whiteGround.normal.background = SketchfabUI.MakeTex(2, 2, new Color(1f, 1f, 1f, 1f)); GUILayout.BeginHorizontal(whiteGround, GUILayout.Height(75)); _logger.showLoginUi(); GUILayout.FlexibleSpace(); GUILayout.BeginVertical(); GUILayout.FlexibleSpace(); GUILayout.Label(Resources.Load("SketchfabGrey") as Texture2D, GUILayout.Height(40), GUILayout.Width(190)); GUILayout.FlexibleSpace(); GUILayout.EndVertical(); GUILayout.EndHorizontal(); }