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图片配置,折叠图,模糊搜...
OdinInspector; using Sirenix.OdinInspector.Editor.Examples; using System; using System.Collections.Generic; using System.Linq; using UnityEngine; [Searchable] public class SearchableExample_1 : MonoBehaviour { public List<string> strings = new List<string>(Enumerable.Range(1, 10).Select(i => "...
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(){GetWindow<MyMenu...
首先,OdinInspector需要在AssetStore付费购买,有的时候打折包也会包含 1.Attribute 排版更加美观和易于管理,且使用非常方便,只需要加Attribute就能显示在Inspector,并且官方提供了非常多的Attribute,想要使用的时候直接在Unity中查看使用就可以,也提供了代码 直接在Inspector显示一个Button: ...
Odin-Inspector-系列教程—–ColorPaletteAttribute Color Palette Attribute:于任何Color属性,并允许从不同的可定义调色板中选择颜色。使用此选项允许用户从一组预定义的颜色选项中进行选择。 【ColorPalette】使用这个特性就回在对应的字段旁出现可用的调色板
本工具是基于Odin,为创建ScriptableObject对应的asset文件制作的菜单,即开即用 示例代码已经做好注释,易于理解、魔改 转载自:https://bitbucket.org/snippets/Bjarkeck/keRbr4 using Sirenix.OdinInspector.Editor; using Sirenix.Utilities; using Sirenix.Utilities.Editor; ...
Unity OdinInspector是一个广受认可的编辑器扩展插件,它显著提高了开发效率,并提升了界面美观度和产品性。以下是关于Unity OdinInspector的初探介绍:RPGEditor界面的实现:RPGEditor界面通过Odin实现了诸如百分比滑动条、Icon图片配置、折叠图和模糊搜索等独特效果。通过分析RPGEditor的实现,开发者可以快速熟悉...
确保数据正确性。ValueDropDown下拉列表显示枚举类型或其他值集合,方便数据选择。这是数组或带有枚举器值的显示方式之一。Odin提供了大量基础节点,为开发者提供了丰富的定制选项。导入Unity后,通过Tools->OdinInspector->Attribute Overview可以查看所有特性。更多功能未在本文中详述,期待后续深入探索。
Odin已经可以说是非常出名了,深受广大开发者喜爱,AssetStore上买的也挺多的,非常好用的Unity编辑器拓展插件,它的很多特性可以使我们的Inspector面板变得更加直观易用。 本次介绍的时Odin的3.0.8.0版本,也就是最新版本的所有特性的功能。 1.AssetsOnly / SceneObjectsOnly ...