Skip to content

Load all images from a folder

Ask for help here ;)

Load all images from a folder

Postby ren072 » 01 Jul 2011, 20:55

Hi,

Once again I need a little help. :oops:
I need to play a movie with alpha in my GUI. As Unity only support Theora movies (that doesn't support alpha), I need another solution.
I've tried the new texture animator, but it needs a material in input. In a GUI texture, there's no material, so it doesn't work. :cry:
Now I'm trying to load a sequence of bitmaps in an array, so I can probably play them. All my bitmaps are in a folder in the root of my project. When I use Resources Do > LoadAll, and I enter the name of the folder in the path field, the resulting array is empty.
What am I doing wrong? Is there another solution to play a GUI movie with alpha?

Thanks a lot!
ren072
 
Posts: 154
Joined: 21 Jun 2011, 14:00
Location: Belgium

Re: Load all images from a folder

Postby Neodrop » 01 Jul 2011, 22:19

Create the folder with name "Resources"
Create any subfolder in the "Resources" folder
Use Resources DO >> Load All
Also, read this : http://unity3d.com/support/documentatio ... urces.html

Let me your movie sequence. I will show you how to use it in Universe with GUI.
User avatar
Neodrop
Администратор
 
Posts: 1068
Joined: 15 Jan 2011, 13:18

Re: Load all images from a folder

Postby ren072 » 02 Jul 2011, 06:58

Excellent, now it's working with the Resources folder.
As I don't know much about Unity, it's not that easy to learn Universe. I'm just jumping from Virtools to Universe.
Anyway, find attached the bitmap sequence and the original avi movie (Xvid codec) if you have another option do play a GUI movie with alpha.

Thanks again
Attachments
Cursor0000.zip
(200.33 KiB) Downloaded 173 times
Cursor0000Xvid.zip
(19.04 KiB) Downloaded 152 times
ren072
 
Posts: 154
Joined: 21 Jun 2011, 14:00
Location: Belgium

Re: Load all images from a folder

Postby Neodrop » 04 Jul 2011, 00:07

Ok. May be I'll look at it today or tomorrow.
User avatar
Neodrop
Администратор
 
Posts: 1068
Joined: 15 Jan 2011, 13:18

Re: Load all images from a folder

Postby Neodrop » 04 Jul 2011, 02:09

User avatar
Neodrop
Администратор
 
Posts: 1068
Joined: 15 Jan 2011, 13:18

Re: Load all images from a folder

Postby ClubMyClub » 07 Sep 2015, 18:56

Thank you for your posts! Very interesting!
ClubMyClub
 
Posts: 18
Joined: 07 Sep 2015, 18:46


Return to HELP!!!

Who is online

Registered users: No registered users