UNITY 手动定制inspector
UNITY 手动定制inspector using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; using System; [ExecuteInEditMode] [CustomEditor( typeof (testxx))] public class testxxEditor : Editor { [SerializeField] public float slider_value = 0.3f ; public bool chk = false ; SerializedProperty check; // Use this for initialization void Start () { } void OnEnable() { check = serializedObject.FindProperty( " x " ); Debug.Log( " ============ " + check.floatValue); } // Update is called once per frame void Update () { } public override void OnInspectorGUI() { if (GUILayout