美文网首页
Odin Inspector 系列教程 --- Indent A

Odin Inspector 系列教程 --- Indent A

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

    Indent Attribute特性:用于缩进可用于任何属性,并将属性的标签向右移动。使用它可以清楚地组织检查器中的属性。

    using Sirenix.OdinInspector;
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    
    public class IndentAttributeExample : MonoBehaviour
    {
        [Title("Nicely organize your properties.")]
        [Indent]
        public int A;
    
        [Indent(2)]
        public int B;
    
        [Indent(3)]
        public int C;
    
        [Indent(4)]
        public int D;
    
        [Title("Using the Indent attribute")]
        [Indent]
        public int E;
    
        [Indent(0)]
        public int F;
    
        [Indent(-1)]
        public int G;
    }
    
    

    更多教程内容详见:革命性Unity 编辑器扩展工具 --- Odin Inspector 系列教程

    相关文章

      网友评论

          本文标题:Odin Inspector 系列教程 --- Indent A

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