Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetAnimationCurve

Sets the value of a named Animation Curve property.
Read time 1 minuteLast updated 10 days ago

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.