Version: 5.3 (switch to 5.4b)
언어English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

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.

닫기

Submission failed

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

닫기

취소

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

파라미터

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.