ドキュメント

Unity Engine

Unity Engine

GetAnimationCurve

Gets the value of a named Animation Curve property.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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
.