x


Problem with texture loading from resources

I'm having following code:

Texture tex = (Texture)Resources.Load ("1.bmp"); 
Debug.Log(tex == null); //prints true

File 1.bmp is in Resources folder, there's a lot of free memory to load, but tex can't be loaded, it is always null. How that could happen?

more ▼

asked Jul 27 '11 at 02:10 PM

Rustam Ganeyev gravatar image

Rustam Ganeyev
99 9 17 20

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first
more ▼

answered Jul 27 '11 at 02:39 PM

Graham Dunnett gravatar image

Graham Dunnett ♦♦
12.8k 11 20 66

ouch :-[ thank you

Jul 27 '11 at 03:57 PM Rustam Ganeyev
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2275
x223

asked: Jul 27 '11 at 02:10 PM

Seen: 2103 times

Last Updated: Jul 27 '11 at 03:57 PM