ClockStone Audio Toolkit for Unity - Documentation

## AudioPickSubItemMode Enumeration |

Used by AudioItem to determine which AudioSubItem is chosen.

Syntax

C#

public enum AudioPickSubItemMode

Members

Member name | Value | Description | |
---|---|---|---|

Disabled | 0 | disables playback | |

Random | 1 | chooses a random subitem with a probability in proportion to Probability | |

RandomNotSameTwice | 2 | chooses a random subitem with a probability in proportion to Probability and makes sure it is not played twice in a row (if possible) | |

Sequence | 3 | chooses the subitems in a sequence one after the other starting with the first | |

SequenceWithRandomStart | 4 | chooses the subitems in a sequence one after the other starting with a random subitem | |

AllSimultaneously | 5 | chooses all subitems at the same time | |

TwoSimultaneously | 6 | chooses two different subitems at the same time (if possible) | |

StartLoopSequenceWithFirst | 7 | always chooses the first subitem. Intended to be used with with a AudioItemLoopMode | |

RandomNotSameTwiceOddsEvens | 8 | Same as RandomNotSameTwice but only picks from odds or evens switching every time. Useful for footsteps left/right |

See Also