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

スクリプト言語

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

AudioSource.loop

Switch to Manual
public var loop: bool;

Description

オーディオクリップがループしているかどうか。

If you disable looping on a playing AudioSource the sound will stop after the end of the current loop.

	@script RequireComponent(AudioSource)
	// Stop looping the sound
	function Start()
	{
		audio.loop = false;
	}