Class AudioListenerSandbox
Gives a test full control over which UnityEngine.AudioListener components are active: it switches off
every listener already in the scene, creates the listeners a test asks for, and puts everything back on dispose.
Inheritance
AudioListenerSandbox
Assembly: Tests.dll
Syntax
public sealed class AudioListenerSandbox : IDisposable
Constructors
AudioListenerSandbox()
Declaration
public AudioListenerSandbox()
Methods
CreateListener(string)
Declaration
public AudioListener CreateListener(string listenerName = "SandboxAudioListener")
Parameters
| Type |
Name |
Description |
| string |
listenerName |
|
Returns
| Type |
Description |
| AudioListener |
|
Dispose()
Declaration
Implements