Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: AxelG on November 08, 2019, 10:21:32 AM

Title: [SOLVED]Load All Video and Audio
Post by: AxelG 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
Title: Re: Load All Video and Audio
Post by: jeanfabre 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?

(https://i.imgur.com/1Q50uBf.png)

Bye,

 Jean
Title: Re: Load All Video and Audio
Post by: AxelG 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".
Title: Re: Load All Video and Audio
Post by: jeanfabre 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
Title: Re: Load All Video and Audio
Post by: AxelG on November 12, 2019, 04:18:12 AM
It worked, thank you!