You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my game object, I have array of Audio Clips, that I then play in the code depending on the game state.
Simply, I sometimes play infoSfxArray[0], sometimes infoSfxArray[1], etc... I tried many ways to localize such an array, but without a success. Do you have any idea how to implement this?
Thanks
The text was updated successfully, but these errors were encountered:
Ok, I solved it by adding: public LocalizedAudioClip[] localizedSfxArray; to my script.
Assigned localized assets in the inspector and then instead of playing infoSfxArray[0] I play localizedSfxArray[0].Value
If you have any better idea, let me know
Thanks for awesome asset, I just left a maximal review on the asset store 👍
Hi
In my game object, I have array of Audio Clips, that I then play in the code depending on the game state.
Simply, I sometimes play infoSfxArray[0], sometimes infoSfxArray[1], etc... I tried many ways to localize such an array, but without a success. Do you have any idea how to implement this?
Thanks
The text was updated successfully, but these errors were encountered: