

Odin Inspector 系列教程 --- Property Order Attribute
海澜
低端打杂人员
阅读 368
2019年11月22日
PropertyOrder特性:用于任何属性,并允许对属性进行排序。使用此选项可以定义属性的显示顺序。

完整示例代码
using Sirenix.OdinInspector;
using UnityEngine;
public class PropertyOrderExample : MonoBehaviour
{
[PropertyOrder(1)]
public int Second;
[InfoBox("PropertyOrder用于更改inspector中属性的顺序")]
[PropertyOrder(-1)]
public int First;
}
更多教程内容详见:革命性Unity 编辑器扩展工具 --- Odin Inspector 系列教程
发布于技术交流
推荐阅读

革命性Unity 编辑器扩展工具 --- Odin Inspector 系列教程
2019-10-29
阅读 1472

Odin Inspector 系列教程 --- Assets Only Attribute
2019-11-04
阅读 324

Odin Inspector 系列教程 --- Custom Value Drawer Attribute
2019-11-04
阅读 621

Odin Inspector 系列教程 --- Delayed Property Attribute
2019-11-04
阅读 261

Odin Inspector 系列教程 --- Detailed Info Box Attribute
2019-11-04
阅读 278

Odin Inspector 系列教程 --- Enable GUIAttribute
2019-11-04
阅读 555
0条评论

问
AI
全新AI功能上线
1. 基于Unity微调:专为Unity优化,提供精准高效的支持。
2. 深度集成:内置于团结引擎,随时查阅与学习。
3. 多功能支持:全面解决技术问题与学习需求。

问
AI