Unity/문제 해결

[Unity/AnimationCurve] 마지막 keyframe time, value 찾는 방법

sorry0101 2023. 2. 9. 18:48
public AniamtionCurve curve;

void Start()
{
	Keyframe lastKey = curve[curve.length-1]; // lastKey.time or lastKey.value
}

참고

1. https://answers.unity.com/questions/326824/animationcurve-how-can-i-know-when-the-end-of-the.html