|
i want to make a pu system for my game and i want to desplay the icons of the power up and i've dont this but i have a problem, the texuter loades with no error, my dicionary contains the key so the if(icons.ContainsKey(p.GetType().Name)) is true... but the key value is null and i can't find the problem, the texture is loade without any error and is null... i have tryed to display all the textures that are in the dictionary and all are null... i think the problem is with "Resources.Load" but i'm a beginer in unity and i don't know so much
(comments are locked)
|
|
Does the files
(comments are locked)
|

yes the files are loaded i have this debug log and its loading everything:
icons.Add(f.Name.Substring(0,f.Name.Length-4),(Texture)Resources.Load(f.FullName,typeof(Texture))); Debug.Log("Loaded texture : "+f.Name);