言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

AudioSource.PlayDelayed

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public function PlayDelayed(delay: float): void;
public void PlayDelayed(float delay);
public def PlayDelayed(delay as float) as void

Parameters

delay 秒単位で指定されるディレイ時間

Description

秒単位で指定されたディレイで clip を再生します。ユーザーは44.1kHzの参照レートに関係しているサンプルの指定されたディレイを引数とした古いPlay(delay)関数の代わりにこの関数を使用することをオススメします。

Note: This function replaces the Play(delay) function when called with the delay-argument. In that function the delay had to be specified as samples relative to a reference rate of 44100. This is inconvenient when the engine is running on a different sample rate and the source sound has an even different rate. Working with delays specified in seconds makes this independent of these.