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

スクリプト言語

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

AudioRolloffMode.Logarithmic

Description

現実世界のロールオフをする場合に使用します。

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

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