Version: 2022.3
言語: 日本語
public void SetCustomCurve (AudioSourceCurveType type, AnimationCurve curve);

パラメーター

type 設定する必要がある Curve の型
curve 与えられた Curve の型に適用される Curve

説明

指定された AudioSourceCurveType のカスタムの Curve を設定します。

The curve will be scaled so that it is applied over AudioSource.maxDistance from the AudioSource.

Note that the internal AnimationCurve to be rescaled to range from 0..1 for performance reasons. This means calling AudioSource.GetCustomCurve will return a potentially different curve to what was just set.