- Home /
Question by
Rustam-Ganeyev · Jul 27, 2011 at 02:10 PM ·
textureresources
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?
Comment
Best Answer
Answer by Graham-Dunnett · Jul 27, 2011 at 02:39 PM
http://unity3d.com/support/documentation/ScriptReference/Resources.Load.html says "extensions must be omitted".
Your answer
Follow this Question
Related Questions
ridiculous load time using Resources.Load() on android build 0 Answers
Set texture / EnableKeyword not working in build 1 Answer
Resources folder fails to load 2048 texture in standalone 0 Answers
Loading a Random Resource in a Folder Without Using Resources.LoadAll 0 Answers
Resources.Load(path+name) as texture == null reference 7 Answers