SFXManager

SFXManager#

NAMESPACE:

UnityUtils.ScriptUtils.Audio

The SFXManager is used to easily play sound effects using the SFX with some set parameters. Allows you to easily add in a pitch variance so clips don’t feel as repetitive, and randomize SFX between a few clips.

Example Usage#

using UnityEngine;
using UnityUtils.ScriptUtils.Audio;

public class ExampleScript : MonoBehaviour
{
     public SFX clip = SFX.Create2dSFX();

     void Start()
     {
        // Play basic SFX
        SFXManager.PlaySFX(clip);
     }
}

Functions#

UnityUtils.ScriptUtils.Audio.SFXManager

Public Static Functions

void PlaySFX(SFX sfx)#

Plays the provided SFX using the sfx clips parameters.

Parameters:

sfx – The SFX object to play