Hello. I want to add curve in one button, so iwant to use AnimationUtility.SetEditorCurve,but some point icant understand.
in example, if iwant to add curve of selected object’s position.x to AnimationClip named ‘example’,
AnimationUtility.SetEditorCurve(
AnimationClip, —AnimationClip want to addcurve, in this time ‘example’.
string, —I think Object’s hierarchy add to curve.
Type, — in this time ,“typeof(Transform)”?
string, — What is this?
AnimationCurve —I think i make curvedata curve = new AnimationCurve(Keyframe(transform.position.x, 0), Keyframe(transform.position.x, 1)
)
i cant understand overall, especialy fourth string is mysterious.
Anyone know this? Thanks.