- Odin Inspector 系列教程 --- Draw Wit
- Odin Inspector 系列教程 --- 自定义Odin序
- Odin Inspector 系列教程 --- Odin Sta
- Odin Inspector 系列教程 --- RoadMap(
- Odin Inspector 系列教程 --- Foldout
- Odin Inspector 系列教程 --- Vertical
- Odin Inspector 系列教程 --- Responsi
- Odin Inspector 系列教程 --- Preview
- Odin Inspector 系列教程 --- Horizont
- Odin Inspector 系列教程 --- Show If
Draw With Unity Attribute特性:可以将DrawWithUnity应用于字段或属性,以使Odin使用Unity的旧绘图系统对其进行绘制。如果
使用一些优先级比DrawWithUnity高的特性,则会按照优先级高的特性进行绘制。

using Sirenix.OdinInspector;
using UnityEngine;
public class DrawWithUnityAttributeExample : MonoBehaviour
{
[InfoBox("如果你曾经遇到过Odin属性的问题,那么很有可能使用DrawWithUnity")]
public GameObject ObjectDrawnWithOdin;
[DrawWithUnity]
public GameObject ObjectDrawnWithUnity;
}
网友评论