本文共 315 字,大约阅读时间需要 1 分钟。
Hide In Editor Mode Attribute:用于在editor模式中隐藏指定属性,在play模式中显示
using Sirenix.OdinInspector;using UnityEngine;public class HideInEditorModeAttributeExample : MonoBehaviour{ [Title("Hidden in editor mode")]//在editor下隐藏属性,运行时显示属性 [HideInEditorMode] public int C; [HideInEditorMode] public int D;}
转载地址:http://lijti.baihongyu.com/