NavMeshAgentControlTrack.cs 499 B

123456789101112131415
  1. using UnityEngine;
  2. using UnityEngine.Playables;
  3. using UnityEngine.Timeline;
  4. using UnityEngine.AI;
  5. [TrackColor(0.855f, 0.8623f, 0.87f)]
  6. [TrackClipType(typeof(NavMeshAgentControlClip))]
  7. [TrackBindingType(typeof(NavMeshAgent))]
  8. public class NavMeshAgentControlTrack : TrackAsset
  9. {
  10. public override Playable CreateTrackMixer(PlayableGraph graph, GameObject go, int inputCount)
  11. {
  12. return ScriptPlayable<NavMeshAgentControlMixerBehaviour>.Create (graph, inputCount);
  13. }
  14. }