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

スクリプト言語

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

AudioRolloffMode.Linear

Description

一定以上距離が離れた際に音を小さくする時に使用します。

	// Sets the rolloff of the audio source attached to
	// this script to linear.

	@script RequireComponent(AudioSource)
	function Start() {
		audio.rolloffMode = AudioRolloffMode.Linear;
	}