-
-
Save todorok1/f98654a968f6f031a8ca8c52b3e57366 to your computer and use it in GitHub Desktop.
Unityでウィンドウを作成するサンプルです。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
/// <Summary> | |
/// ウィンドウを作成するサンプルです。 | |
/// </Summary> | |
public class MyWindow : EditorWindow | |
{ | |
/// <Summary> | |
/// ウィンドウを表示します。 | |
/// </Summary> | |
[MenuItem("Window/MyWindow")] | |
static void Open() | |
{ | |
var window = GetWindow<MyWindow>(); | |
window.titleContent = new GUIContent("オリジナルのウィンドウ"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment