Odin Inspector is a plugin for Unity that lets you enjoy all the workflow benefits of having a powerful, customized and user-friendly editor, without ever having to write a single line of custom editor code.
Cloud Studio代码运行 using Sirenix.OdinInspector;using Sirenix.OdinInspector.Editor;using System.Collections;using System.Collections.Generic;using System.Linq;using UnityEditor;using UnityEngine;publicclassMyMenuEditorWindow:OdinMenuEditorWindow{[MenuItem("My Game/My Menu Editor")]privatestaticvoidOpenWindow...
OdinInspector; using System.Collections; using System.Collections.Generic; using UnityEngine; public class DictionaryDrawerSettingsExample : MonoBehaviour { [DictionaryDrawerSettings()] [ShowInInspector] [InfoBox("为了序列化字典,我们需要做的就是从SerializedMonoBehaviour继承类")] public Dictionary<int, ...
Odin Inspector 系列教程 --- Responsive Button Group Attribute 【Misc】 Odin Inspector 系列教程 --- Custom Context Menu Attribute Odin Inspector 系列教程 --- Disable Context Menu Attribute Odin Inspector 系列教程 --- Draw With Unity Attribute Odin Inspector 系列教程 --- Hide Duplicate Reference Box...
首先,OdinInspector需要在AssetStore付费购买,有的时候打折包也会包含 1.Attribute 排版更加美观和易于管理,且使用非常方便,只需要加Attribute就能显示在Inspector,并且官方提供了非常多的Attribute,想要使用的时候直接在Unity中查看使用就可以,也提供了代码 直接在Inspector显示一个Button: ...
用Unity默认的显示方法显示Inspector上的属性,Odin导入Unity后Odin会改变属性的显示方式,这个属性相当于把属性重置回来了。 publicGameObjectDrawInOdin;[DrawWithUnity]publicGameObjectDrawInUnity; 上面的是Odin的显示方式,下面的是Unity默认的显示方式 4.HideDuplicateReferenceBox ...
本工具是基于Odin,为创建ScriptableObject对应的asset文件制作的菜单,即开即用 示例代码已经做好注释,易于理解、魔改 转载自:https://bitbucket.org/snippets/Bjarkeck/keRbr4 using Sirenix.OdinInspector.Editor; using Sirenix.Utilities; using Sirenix.Utilities.Editor; ...
Unity OdinInspector初探 Odin作为一款编辑器扩展插件受到了广大开发者的认可,不仅能提高编辑器的开发效率,同时界面的美观度,产品性也能得到极大的保障 Odin导入 首次导入Odin插件时的开始界面,可以看到标记出来的三个Import分别对应着自定义绘制,属性处理器,RPG编辑器三个案例,我们可以通过点击对应的Import进行导入...
Odin是不可以禁用全局的指定绘制特性的,但是可以让指定的类型不参与Odin绘制。打开Tools/Odin Inspector/Preferences,在Editor Types中禁用不需要绘制的类型 3. 有可以参考的示例吗? 打开Tools/Odin Inspector/Getting Started,你会找到丰富的示例为你答疑解惑
OnInspectorDispose Inspector销毁时触发 在Inspector关闭或重置时执行特定操作,保持代码的模块化和可维护性。OnInspectorGUI 显示Inspector时持续执行 类似于Unity的OnGUI或Update,用于执行与Inspector交互相关的代码。OnInspectorInit Inspector初始化时触发 在Inspector加载后立即执行初始化代码,用于设置初始状态。