Unity RTS Engine

  1. Home
  2. Unity RTS Engine
  3. Audio
  4. Audio Clip Field

Audio Clip Field

Each field in the inspector of the RTS Engine components that requires to input an audio clip is supported by the AudioClipFetcher property. It allows to define a set of AudioClip instances and retrieve one of them each time depending on the chosen type.


As an example, here’s the selection audio field of a unit:

  1. Fetch Type: How would the audio clip be fetched each time?
    1. Random: One audio clip is randomly chosen each time.
    2. Random No Rep: One audio clip is randomly chosen each time with the guarantee that the same audio clip will not be chosen consecutively.
    3. In Order: Fetch audio clips in the order they were defined in.
  2. Audio Clips: An array of audio clips that can be potentially fetched.

How can we help?