User Manual

オーディオソース


The Audio Source component is deprecated in favor of the new [Sound Component][4]

The Audio Source component controls playback of an audio sample.

The Audio Source component can be enabled or disabled using the toggle in the top right of the component panel. If enabled, the component will play assigned audio assets.

Audio Source component

プロパティ

PropertyDescription
AssetsThe audio assets that can be played from this audio source. Multiple audio assets can be specified by the picker control.
ActivateIf checked, the first audio asset specified by the Assets property will be played on load. Otherwise, audio assets will need to be played using script.
LoopIf checked, the component will loop played audio assets continuously. Otherwise, audio assets are played once to completion.
3dIf checked, the component will play back audio assets as if played from the location of the entity in 3D space.
VolumeThe volume of the audio assets played back by the component.
PitchThe pitch to playback the audio at. A value of 1 means the audio is played back at the original pitch.
Min DistanceThe distance at which the volume of playback begins to fall from its maximum.
Max DistanceThe distance at which the volume of playback falls to zero.
Roll-off FactorThe rate at which volume fall-off occurs.

スクリプティングインターフェイス

You can control an Audio Source component's properties using a script component. The Audio Source component's scripting interface is here.

This site is translated by the community. If you want to get involved visit this page