Skip to content

Instantly share code, notes, and snippets.

Created March 9, 2014 10:06
What would you like to do?
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
public class WindowNotification : EditorWindow {
// Add menu item to the Window menu
[MenuItem ("Window/Window Notification")]
static void Init () {
// Get existing open window or if none, make a new one:
EditorWindow.GetWindow<WindowNotification> (false, "Window Notification");
// Implement your own editor GUI here.
void OnGUI () {
if (GUILayout.Button("通知テスト",
Texture tTexture = (Texture)AssetDatabase.LoadAssetAtPath("Assets/Editor/Img/vJEvWNuY.png", typeof(Texture2D));
GUIContent guiContent = new GUIContent();
guiContent.text = "通知内容を表示する!!";
guiContent.image = tTexture;
if (GUILayout.Button("通知 削除",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment