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. Instead of writing and maintaining thousands of lines of custom editor code, developers...
首次导入Odin插件时的开始界面,可以看到标记出来的三个Import分别对应着自定义绘制,属性处理器,RPG编辑器三个案例,我们可以通过点击对应的Import进行导入 成功导入后,编辑器对应的界面也发生了变化,可以通过点击OpenWindow打开RPGEditor界面 RPGEditor界面有着很多独特的界面效果,比如百分比滑动条Icon图片配置,折叠图,模糊搜...
Odin Inspector教程connect.unity.com/p/ge-ming-xing-unity-bian-ji-qi-kuo-zhan-gong-ju-odin-inspector-xi-lie-jiao-cheng 二、使用Odin Inspector建议 在使用Odin Inspector过程中,经历一些坑以及发现它可以提升开发效率的几个点。 使用它写Editor Window是非常方便与快捷的,比Unity 自带的EditorWindow已非常...
Odin是编辑器拓展的插件,同时也可以帮助开发者进行序列化操作(Unity原生的序列化不支持很多类型,Odin支持比Unity更多的序列化,例如二维数组、Dictionary),在使用Odin的时候,我们通过Odin中给予我们的Attributes来快速影响我们所需要编辑的字段,帮助我们快速开发可视
本工具是基于Odin,为创建ScriptableObject对应的asset文件制作的菜单,即开即用 示例代码已经做好注释,易于理解、魔改 转载自:https://bitbucket.org/snippets/Bjarkeck/keRbr4 using Sirenix.OdinInspector.Editor; using Sirenix.Utilities; using Sirenix.Utilities.Editor; ...
频繁点击可有效控制事件触发的频率 测试脚本 voidStart(){ AnimatedButton animatedButton = GetComponent<AnimatedButton>(); animatedButton.onClick.AddListener(() => { Debug.Log("TestAnimatedButton"); }); } AnimatedButton usingSirenix.OdinInspector;usingSystem;usingSystem.Collections;usingUnityEngine;usingUn...
提供更好的用户体验。ShowDrawerChain 显示所有Drawer 列出Inspector中使用的所有绘制器,便于调试和理解界面构建过程。ShowPropertyResolver 显示属性解析器 提供属性的类型信息,便于开发者快速定位和理解属性。至此,OdinInspector的所有特性介绍完毕,接下来将进行特性总结和Odin窗体的基本使用说明。
OdinInspector; using System.Collections; using System.Collections.Generic; using UnityEngine; public class DictionaryDrawerSettingsExample : MonoBehaviour { [DictionaryDrawerSettings()] [ShowInInspector] [InfoBox("为了序列化字典,我们需要做的就是从SerializedMonoBehaviour继承类")] public Dictionary<int, ...
Unity OdinInspector是一个广受认可的编辑器扩展插件,它显著提高了开发效率,并提升了界面美观度和产品性。以下是关于Unity OdinInspector的初探介绍:RPGEditor界面的实现:RPGEditor界面通过Odin实现了诸如百分比滑动条、Icon图片配置、折叠图和模糊搜索等独特效果。通过分析RPGEditor的实现,开发者可以快速熟悉...
首先,OdinInspector需要在AssetStore付费购买,有的时候打折包也会包含 1.Attribute 排版更加美观和易于管理,且使用非常方便,只需要加Attribute就能显示在Inspector,并且官方提供了非常多的Attribute,想要使用的时候直接在Unity中查看使用就可以,也提供了代码 直接在Inspector显示一个Button: ...