Files
VR-WuKong/Assets/ThirdParty/Tools/SetFrame/Runtime/KeyFrame.cs
2025-11-14 18:44:06 +08:00

35 lines
683 B
C#

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);
}
}
}
}