Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created December 5, 2020 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todorok1/f98654a968f6f031a8ca8c52b3e57366 to your computer and use it in GitHub Desktop.
Save todorok1/f98654a968f6f031a8ca8c52b3e57366 to your computer and use it in GitHub Desktop.
Unityでウィンドウを作成するサンプルです。
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