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;
}