Redirect to the Docs main page.Docs

Items Sounds

Configuring AudioStateSo

Learn how to set up and configure AudioStateSo for randomizing and managing audio playback in the Ultimate Grid Inventory.

Configuring AudioStateSo

AudioStateSo is a Scriptable Object (SO) used to manage and randomize the playback of AudioSOs. It controls the sounds played when performing actions such as pick, place, or execute option on an item within a Grid Inventory or Holder.

Creating Audio State SO

To create an Audio State SO, follow these steps:

  1. Right-click in a folder within the Project tab.
  2. Select Create > Inventory > Audio > Audio State.

Creating Audio State So in Unity EditorLoading image

Configuring the Audio State SO

Once the Audio State file is created, configure it as follows:

Configuring Audio State SO in Unity EditorLoading image

Understanding the Properties

  • Random: A boolean that determines whether the sequence of AudioSOs should be randomized. If off, the audio will play in the order provided in the AudioSOs list.
  • Audio SOs: A list of AudioSOs used for playing sounds during item interactions within a Grid Inventory or Holder.

By configuring the AudioStateSo, you can enhance the audio experience by randomizing playback or using specific sound sequences. For more details on managing individual audio clips, refer to the Importing Sounds to UGI documentation.

On this page