Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localizing array of audio clips? #7

Closed
iMobCoding opened this issue Jul 29, 2018 · 2 comments
Closed

Localizing array of audio clips? #7

iMobCoding opened this issue Jul 29, 2018 · 2 comments

Comments

@iMobCoding
Copy link

Hi

In my game object, I have array of Audio Clips, that I then play in the code depending on the game state.
screenshot 22

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

@iMobCoding
Copy link
Author

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 👍

Repository owner deleted a comment from pkondrashov-ms Jul 30, 2018
@ibrahimpenekli
Copy link
Owner

@crmagicxxx That seems OK. Also thanks for your review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants