Hide In Editor Mode Attribute:用于在editor模式中隱藏指定屬性,在play模式中顯示
using Sirenix.OdinInspector;
using UnityEngine;
public class HideInEditorModeAttributeExample : MonoBehaviour
{
[Title("Hidden in editor mode")]//在editor下隱藏屬性瘫辩,運(yùn)行時顯示屬性
[HideInEditorMode]
public int C;
[HideInEditorMode]
public int D;
}