文档

Unity Engine

Unity Engine

SetAnimationCurve

Sets the value of a named Animation Curve property.
阅读时间1 分钟最后更新于 1 个月前

Definition

SetAnimationCurve(int, AnimationCurve)

Sets the value of a named Animation Curve property.
public void SetAnimationCurve(int nameID, AnimationCurve c)

Parameters

nameID

The ID of the property. This is the same ID that Shader.PropertyToID returns.

The new Animation Curve.

Remarks

Automatically changes overridden state for this property to true.

SetAnimationCurve(string, AnimationCurve)

Sets the value of a named Animation Curve property.
public void SetAnimationCurve(string name, AnimationCurve c)

Parameters

name

The name of the property.

The new Animation Curve.

Remarks

Automatically changes overridden state for this property to true.