public override void OnInspectorGUI() { var sharedData = KGSharedData.instance; EditorGUILayout.LabelField("AppId : " + sharedData.configuration.appId); EditorGUILayout.LabelField("AppSecret : " + sharedData.configuration.appSecret); if (Application.isPlaying) { return; } if (GUILayout.Button("Configuration")) { KGMenu.Config_SDK(); } }
public void OnGUI() { GUI.backgroundColor = Color.white; var style = new GUIStyle(); style.normal.background = Texture2D.whiteTexture; GUILayout.BeginArea(new Rect(0, 0, position.width, position.height), style); var imgHeader = new GUIStyle(); imgHeader.normal.background = Texture2D.whiteTexture; imgHeader.normal.textColor = Color.white; //GUI.Box(new Rect(20,-20, 176, 100), "", imgHeader); var headLabelStyle = new GUIStyle(GUI.skin.label); headLabelStyle.fontSize = 30; headLabelStyle.fontStyle = FontStyle.Bold; headLabelStyle.normal.textColor = new Color32(122, 122, 122, 255); headLabelStyle.fixedHeight = 50; GUI.Label(new Rect(12, 12, 300, 200), "KakaoGame SDK", headLabelStyle); headLabelStyle.normal.textColor = new Color32(255, 220, 50, 255); GUI.Label(new Rect(10, 10, 300, 200), "KakaoGame SDK", headLabelStyle); GUILayout.Space(100); if (ButtonWithIcon(KGResources.setting, "Configure SDK", "AppID, LogLevel등 SDK 환경설정을 수행합니다.")) { KGMenu.Config_SDK(); } if (ButtonWithIcon(KGResources.guide, "Guide", "연동 가이드를 표시합니다. (인터넷)")) { Application.OpenURL(sdkGuideUrl); } if (ButtonWithIcon(KGResources.example, "API Reference", "API 레퍼런스를 표시합니다. (인터넷)")) { Application.OpenURL(apiReferenceUrl); //new KGExampleWindow().Show(); } GUI.Label(new Rect(400, 480, 40, 20), KGPackage.version.ToString()); GUILayout.EndArea(); }