playMaker

Author Topic: ArrayMaker and Audio  (Read 1788 times)

lucashaley

  • Playmaker Newbie
  • *
  • Posts: 3
ArrayMaker and Audio
« on: November 17, 2013, 05:57:37 PM »
Hi all --

I'm trying to use ArrayMaker to assign a random AudioClip to an AudioSource from an ArrayMaker pre-filled array. I'm using:

ArrayListGetRandom
SetAudioClip

But apparently Unity is having a hard time taking the result from the GetRandom (Object) and assigning it to the AudioSource (as an AudioClip). Is there a way to convert the type before assigning?

Thanks!

-Lucas

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: ArrayMaker and Audio
« Reply #1 on: November 18, 2013, 01:18:47 AM »
Hi,

 Thanks for reporting! It's been fixed, Please redownload from the wiki page.

If in trouble, let me know.

Bye,

 Jean

lucashaley

  • Playmaker Newbie
  • *
  • Posts: 3
Re: ArrayMaker and Audio
« Reply #2 on: November 18, 2013, 12:10:13 PM »
Wow, awesome response time!

Is there anything else I need to do aside from reimporting the package?

Thanks --

-Lucas

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: ArrayMaker and Audio
« Reply #3 on: November 19, 2013, 12:59:40 AM »
Hi,

 no, you should be fine by just importing the latest.

Bye,

 Jean