Odin Inspector 系列教程 --- Draw With Unity Attribute

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

更多教程內容詳見:革命性Unity 編輯器擴展工具 --- Odin Inspector 系列教程

?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容