Draw With Unity Attribute特性:可以將DrawWithUnity應(yīng)用于字段或?qū)傩苑采允筄din使用Unity的舊繪圖系統(tǒng)對(duì)其進(jìn)行繪制克胳。如果
使用一些優(yōu)先級(jí)比DrawWithUnity高的特性说莫,則會(huì)按照優(yōu)先級(jí)高的特性進(jìn)行繪制。
using Sirenix.OdinInspector;
using UnityEngine;
public class DrawWithUnityAttributeExample : MonoBehaviour
{
[InfoBox("如果你曾經(jīng)遇到過(guò)Odin屬性的問(wèn)題,那么很有可能使用DrawWithUnity")]
public GameObject ObjectDrawnWithOdin;
[DrawWithUnity]
public GameObject ObjectDrawnWithUnity;
}