using UnityEditor; using UnityEngine; namespace Cinemachine.Editor { [CustomEditor(typeof(CinemachineHardLookAt))] public sealed class CinemachineHardLookAtEditor : BaseEditor { public override void OnInspectorGUI() { BeginInspector(); if (Target.LookAtTarget == null) EditorGUILayout.HelpBox( "Hard Look At requires a LookAt target. Change Aim to Do Nothing if you don't want a LookAt target.", MessageType.Warning); EditorGUI.BeginChangeCheck(); GUI.enabled = false; EditorGUILayout.LabelField(" ", "Hard Look At has no settings", EditorStyles.miniLabel); GUI.enabled = true; DrawRemainingPropertiesInInspector(); } } }