Indent Attribute特性:用于縮進(jìn)可用于任何屬性,并將屬性的標(biāo)簽向右移動(dòng)痴脾。使用它可以清楚地組織檢查器中的屬性颤介。
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;
}