unity自定义Scene窗口。Scene窗口添加按钮等,如下效果
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine.SceneManagement;
using UnityEngine.Tilemaps;
using UnityEditor.Experimental;
using System.Reflection;
using System;
public class SceneViewEx : SceneView
{
[MenuItem("Test/SceneViewEx")]
static void SceneViewExShow()
{
EditorWindow.GetWindow<SceneViewEx>().Show();
Texture2D texture2D = InnerLoadGeneratedIconOrNormalIcon("SceneviewFx");
}
public override void OnEnable()
{
//getAttribute();
//OnEnableTest();
try
{
base.OnEnable();
}
catch
{
}
}
private