Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetAnimationCurve

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

Definition

GetAnimationCurve(int)

Gets the value of a named Animation Curve property.
public AnimationCurve GetAnimationCurve(int nameID)

Parameters

nameID

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

Returns

Type

Description

AnimationCurveThe value for the Animation Curve you specify. Returns an empty Animation Curve if VisualEffect.HasAnimationCurve returns
false
.

GetAnimationCurve(string)

Gets the value of a named Animation Curve property.
public AnimationCurve GetAnimationCurve(string name)

Parameters

name

The name of the property.

Returns

Type

Description

AnimationCurveThe value for the Animation Curve you specify. Returns an empty Animation Curve if VisualEffect.HasAnimationCurve returns
false
.