CinemachinePOVEditor.cs 392 B

123456789101112131415
  1. using UnityEditor;
  2. namespace Cinemachine.Editor
  3. {
  4. [CustomEditor(typeof(CinemachinePOV))]
  5. [CanEditMultipleObjects]
  6. internal sealed class CinemachinePOVEditor : BaseEditor<CinemachinePOV>
  7. {
  8. private void OnEnable()
  9. {
  10. for (int i = 0; i < targets.Length; ++i)
  11. (targets[i] as CinemachinePOV).UpdateInputAxisProvider();
  12. }
  13. }
  14. }