首页
学习
活动
专区
圈层
工具
发布

【Unity编辑器】UnityEditor多重弹出窗体与编辑器窗口层级管理

本篇博客,马三就来和大家分享一下其中一个比较有趣的需求,RT,“UnityEditor多重弹出窗体与编辑器窗口层级管理”。   ...再进一步我们可以通过反编译UnityEditor.dll来查看一下,他在底层是怎样实现的。...UnityEditor.dll一般位于: X:\Program Files\Unity\Editor\Data\Managed\UnityEditor.dll 路径下面。 ?...EditorWindowBase编辑器窗口基类代码如下: 1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEditor...76 }   最后让我们看一下可重复弹出窗口是如何实现的,代码如下,有了前面的铺垫和代码中的注释相信大家一看就会明白,这里就不再逐条进行解释了: 1 using System; 2 using UnityEditor

4.5K30
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    Unity 编辑器开发实战【Custom Editor】- FSM Editor

    下面是最终效果: 首先,自定义一个编辑器面板,需要用到Attribute:CustomEditor,参数传入目标类的类型,代码如下: using UnityEngine; using UnityEditor...} } 自定义编辑器类继承Editor类后,重写OnInspectorGUI函数来自定义Inspector面板,例如添加一个Label文本: using UnityEngine; using UnityEditor...,因此需要通过反射去获取: using System.Reflection; using System.Collections.Generic; using UnityEngine; using UnityEditor...using System.Linq; using System.Reflection; using System.Collections.Generic; using UnityEngine; using UnityEditor...using System.Linq; using System.Reflection; using System.Collections.Generic; using UnityEngine; using UnityEditor

    1.1K30
    领券