Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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
-
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
-
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".
-
Hi,
Resources must be in a "Resources" folder :
https://docs.unity3d.com/ScriptReference/Resources.html
Bye,
Jean
-
It worked, thank you!