Odin-Inspector-系列教程—–HideInPlayModeAttribute

Hide In Play Mode Attribute:在Play模式下隐藏对应属性

using Sirenix.OdinInspector;
using UnityEngine;

public class HideInPlayModeAttributeExample : MonoBehaviour
{
    [Title("Hidden in play mode")]
    [HideInPlayMode]
    public int A;

    [HideInPlayMode]
    public int B;
}

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

发表评论