EazySoundManagerPlaySound Method (AudioClip, Single, Boolean, Transform) |
Play a sound fx
Namespace:
Hellmade.Sound
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public static int PlaySound(
AudioClip clip,
float volume,
bool loop,
Transform sourceTransform
)
Parameters
- clip
- Type: AudioClip
The audio clip to play - volume
- Type: SystemSingle
The volume the music will have - loop
- Type: SystemBoolean
Wether the sound is looped - sourceTransform
- Type: Transform
The transform that is the source of the sound (will become 3D audio). If 3D audio is not wanted, use null
Return Value
Type:
Int32The ID of the created Audio object
See Also