Select your preferred scripting language. All code snippets will be displayed in this language.
enumeration
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseRolloff modes that a 3D sound can have in an audio source.
Logarithmic | Use this mode when you want a real-world rolloff. |
Linear | Use this mode when you want to lower the volume of your sound over the distance. |
Custom | Use this when you want to use a custom rolloff. |