- Odin Inspector 系列教程 --- Property
- Odin Inspector 系列教程 --- Property
- Odin Inspector 系列教程 --- Property
- Odin Inspector 系列教程 --- Property
- Odin Inspector 系列教程 --- 自定义Odin序
- Odin Inspector 系列教程 --- Odin Sta
- Odin Inspector 系列教程 --- RoadMap(
- Odin Inspector 系列教程 --- Foldout
- Odin Inspector 系列教程 --- Vertical
- Odin Inspector 系列教程 --- Responsi
PropertyOrder特性:用于任何属性,并允许对属性进行排序。使用此选项可以定义属性的显示顺序。

完整示例代码
using Sirenix.OdinInspector;
using UnityEngine;
public class PropertyOrderExample : MonoBehaviour
{
[PropertyOrder(1)]
public int Second;
[InfoBox("PropertyOrder用于更改inspector中属性的顺序")]
[PropertyOrder(-1)]
public int First;
}
网友评论