LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

AudioRolloffMode

enumeration

Description

Rolloff modes that a 3D sound can have in an audio source.

Properties

LogarithmicUse this mode when you want a real-world rolloff.
LinearUse this mode when you want to lower the volume of your sound over the distance.
CustomUse this when you want to use a custom rolloff.