美文网首页
Odin Inspector 系列教程 --- Draw Wit

Odin Inspector 系列教程 --- Draw Wit

作者: su9257_海澜 | 来源:发表于2019-10-09 09:57 被阅读0次

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 系列教程

相关文章

网友评论

      本文标题:Odin Inspector 系列教程 --- Draw Wit

      本文链接:https://www.haomeiwen.com/subject/nodbpctx.html