playMaker

Author Topic: arraymaker and audio clips [SOLVED]  (Read 1593 times)

ming

  • Playmaker Newbie
  • *
  • Posts: 5
arraymaker and audio clips [SOLVED]
« on: March 13, 2014, 07:30:37 PM »
Hello there :)

im trying to use Array List Get Previous / Next to get audio clips off a list,

On the list ive set the prefill type to "Audio Clip"

In the Array List Get action ive set the results type to object, (there isnt an audio clip option here)

The result variable has the object type set to "UnityEngine.AudioClip"

But when i run it i get
The fsmVar value <UnityEngine.Object> doesn't match the value <UnityEngine.AudioClip> UnityEngine.Debug:LogError(Object)

im not sure where to go from here any help much appreciated
 
thanks
« Last Edit: March 18, 2014, 09:15:42 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: arraymaker and audio clips
« Reply #1 on: March 14, 2014, 08:55:42 AM »
Hi,

 it's all working fine here. Are you sure you have the latest ArrayMaker?

 Your FsmVar is anyway set to "object" Select your FsmObject var and set its "object type" to UnityEngine.AudioClip. Then it will work.

 Playmaker doesn't have a FsmAudioClip type of variable, that's why you have to go trhough this step, I just created a special type in ArrayMaker for convenience, but bringing that back into a playmaker variable means using FsmObject var, no other ways :)

bye,

 Jean

ming

  • Playmaker Newbie
  • *
  • Posts: 5
Re: arraymaker and audio clips
« Reply #2 on: March 14, 2014, 05:55:41 PM »
yep array maker version was old ive updated and all is good thanks for your time :)