Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created Dec 5, 2020
Embed
What would you like to do?
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