public override void OnInspectorGUI() { base.OnInspectorGUI(); if (EditorGUILayout.Toggle(isGray.displayName, isGray.boolValue)) { gray.EnableGray(); } else { gray.DisableGray(); } }