# if UNITY_EDITORusingSystem.Collections.Generic;usingUnityEngine;usingDG.Tweening;usingUnityEditor;usingDG.DOTweenEditor;usingSirenix.OdinInspector.Editor;[CustomEditor(typeof(EditModeTweenableMono),true)]publicclassEditModeTweenableMonoInspector:OdinEditor{// 获取debugTweenListprivateEditModeTweenableMono...
网址:odininspector.com/tutor 里面针对Odin各类主题,如Attribute、Custom Editor、Serialize等有详细的说明。一开始可以大致浏览一遍,后续可以根据需求具体研究。 顺便推荐一下UnityEditor相关的有个十分经典的教程:49.233.81.186/ 最后两个实用小工具:Serialization Debugger和Static Inspector: 分别可以在Unity菜单栏中找到:...
同时,UnityEditor的经典教程和Odin自带的Serialization Debugger、Static Inspector工具也是学习过程中不可或缺的辅助。前者有助于解决序列化问题,后者则用于检查静态数据,大大提高了开发效率。
MonoEditorType_InspectorType = MonoEditorType.GetField("m_InspectorType", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic);publicstaticvoidSetCustomEditor(Type inspectedType, Type editorType,boolisFallbackEditor,boolisEditorForChildClasses,boolisMultiEditor){objectobj = Activator.CreateInst...
Sirenix, developers of Odin Inspector 摘要 选择Unity 版本 最后更新:2024 六月 06 2022.3 语言 英语 Get started with Odin Inspector and Validator 教程 中级 15 分钟 Introduction to Odin attributes 教程 中级 30 分钟 Create custom editor windows using attributes ...
打开Tools/Odin Inspector/Getting Started,你会找到丰富的示例为你答疑解惑 4. 一些全局的警告提示,我选择隐藏后如何开启? 打开Tools/Odin Inspector/Preferences,在Serialization中取消已经隐藏的全局警告信息即可,可以还可以copy对应的冗长警告进行翻译~~~ 5. 如果我仅仅在Editor 模式下使用Odin,可以在出包时剥离Odin吗...
EditorInspectorWorkflowSerializationCross PlatformFunctionalityToolAttributesUtilityCustomAAAScripting Frequently bought together Quick Look Sirenix Odin Inspector and Serializer (736) $55 Quick Look Demigiant DOTween Pro (807) $15 Quick Look Freya Holmér Shapes (87) $100 Add all 3 to cart ...
查看静态检查器的源码:首先在Rider当中切换到Assemblies视图。接着在该视图的列表当中选择Sirenix.OdinInspector.Editor程序集。然后从该程序集的列表当中选择Sirenix.OdinInspector.Editor命名空间。最后从该命名空间的列表当中双击StaticInspectorWindow类型,进而可以查看静态检查器的源码。如下图所示: ...
Odin Inspector for Unity 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.
odin 扩展Unity内置类inspector 举两个例子,在变量上使用[SerializeFiled]属性,可以强制让变量进行序列化,可以在Unity的Editor上进行赋值。 在Class上使用[RequireComponent]属性,就会在Class的GameObject上自动追加所需的Component。 以下是Unity官网文档中找到的所有Attribute,下面将按照顺序,逐个对这些Attribute进行说明和小...