playMaker

Author Topic: [SOLVED]Load All Video and Audio  (Read 1535 times)

AxelG

  • Playmaker Newbie
  • *
  • Posts: 34
[SOLVED]Load All Video and Audio
« on: November 08, 2019, 10:21:32 AM »
Hello,

On my project I'd like to load resources from a folder (mp4 videos and mp3 audio files) so that their ready for usage when the game object owner is activated.

Is there a way to achieve that with PlayMaker? I've heard of the "Resource Load" action but when I choosing the type of resources, I don't find audio or video.

Is there another way?

Note: My project consist on displaying short sequences of video one by one. Without loading all the video at once there is a delay between each sequences.

Best,
Axel
« Last Edit: November 12, 2019, 04:18:33 AM by AxelG »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Load All Video and Audio
« Reply #1 on: November 11, 2019, 05:19:19 AM »
Hi,

 if you want to load them without using them, then they should not be in Resources, and simply stored as regular assets.

it should work if you load as an object, have you tried that?



Bye,

 Jean

AxelG

  • Playmaker Newbie
  • *
  • Posts: 34
Re: Load All Video and Audio
« Reply #2 on: November 11, 2019, 05:47:22 AM »
Oh I didn’t know that we can specify these type of object there.
Thanks.
I’m trying right now, just to know, how the Asset Path has to be written?
I trying  ‘‘/Folder 01/SubFolder 02’’ and the asset stored line is still on "None".

Best,
Axel

Edit: Added a screenshot attached
Edit2: I added a videoclip into the object type variable (as I've seen for other that had the same problem), it didn't work either. The store result is still "None".
« Last Edit: November 11, 2019, 05:29:11 PM by AxelG »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Load All Video and Audio
« Reply #3 on: November 12, 2019, 12:35:38 AM »
Hi,

 Resources must be in a "Resources" folder :

https://docs.unity3d.com/ScriptReference/Resources.html

Bye,

 Jean

AxelG

  • Playmaker Newbie
  • *
  • Posts: 34
Re: Load All Video and Audio
« Reply #4 on: November 12, 2019, 04:18:12 AM »
It worked, thank you!