using System.Collections; using System.Collections.Generic; using UnityEngine; public class KeyFrame : MonoBehaviour { public int index; public Transform[] points; public Transform viewPoint; // Start is called before the first frame update void Start() { //clip. } // Update is called once per frame void Update() { } private void OnDrawGizmos() { if(points.Length > 0) { for(int i = 0; i < points.Length - 1; ++i) { Gizmos.color = Color.red; Gizmos.DrawLine(points[i].position, points[i + 1].position); } } } }