没有找到有该功能的宏,曲线实现一下,主要应用在某些不想让手动编辑的Asset。
#if UNITY_EDITOR
[CustomEditor(typeof(******))]
public class ******Editor : Editor
{
public override void OnInspectorGUI()
{
GUI.enabled = false;
base.OnInspectorGUI();
}
}
#endif
没有找到有该功能的宏,曲线实现一下,主要应用在某些不想让手动编辑的Asset。
#if UNITY_EDITOR
[CustomEditor(typeof(******))]
public class ******Editor : Editor
{
public override void OnInspectorGUI()
{
GUI.enabled = false;
base.OnInspectorGUI();
}
}
#endif