Skip to content

Instantly share code, notes, and snippets.

@inertiave
Created December 1, 2019 09:07
Show Gist options
  • Save inertiave/75e0b11bdc32f025a784373ebd61a895 to your computer and use it in GitHub Desktop.
Save inertiave/75e0b11bdc32f025a784373ebd61a895 to your computer and use it in GitHub Desktop.
using UnityEngine;
namespace CQ.Test {
public class CurveAssetUsage : MonoBehaviour {
public AnimationCurveAsset curveAsset;
AnimationCurve currentCurve;
// Scriptable Object 에서 커브 데이터를 가져다 커브로 사용할 때
void SetCurve(AnimationCurveAsset curve)
{
currentCurve = curveAsset;
}
// 커브 데이터를 Scriptable Object 에 저장 할 때
void CacheCurve(AnimationCurve curve)
{
curveAsset = curve;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment