返回介绍

AudioLowPassFilter.customCutoffCurve 自定义截止曲线

发布于 2019-12-18 15:37:22 字数 1290 浏览 969 评论 0 收藏 0

JavaScript => public var customCutoffCurve: AnimationCurve;
C# => public AnimationCurve customCutoffCurve;

Description 描述

Returns or sets the current custom frequency cutoff curve.

返回或设置当前自定义频率截至曲线。

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

该曲线能被缩放,因此它应用于AudioSource的AudioSource.maxDistance。

Note that if there is no curve set, or AudioLowPassFilter.cutoffFrequency has been set, a single key AnimationCurve will be returned corresponding to the current cutoff frequency.

注意,如果无曲线设置或AudioLowPassFilter.cutoffFrequency已经设置,将返回相对应于当前截止频率的单个AnimationCurve。

Setting the curve will result in the internal AnimationCurve to be rescaled to range from 0..1 for performance reasons. This means calling AudioLowPassFilter.customCutoffCurve will return a potentially different curve to what was just set.

设置曲线会导致内部AnimationCurve被重新调整,出于性能的原因范围从0到1。这意味着调用AudioLowPassFilter.customCutoffCurve将返回刚设置的不同的曲线。

AudioLowPassFilter

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文