Question by
nicholasy24 · Jun 03, 2016 at 07:27 PM ·
c#asset
Static Assets Not Working,...
Hi I assume i'm just making a stupid mistake but that's why i'm here hoping that you guys can tell me i'm stupid but i have a script that i need to use in multiple places and i don't wanna assign the assets for everything every time (Textures And Fonts) So i used this :
Texture Tex = Resources.Load("Texture", typeof(Texture)) as Texture;
Font font = Resources.Load("Font", typeof(Font)) as Font;
But For Some Reason it keeps getting set to Null When i have a Texture file called "Texture", And A Font File Called " Font" Both in my asset folder, and i haven't got a clue why this is happening and any help is welcome :D Thank you
Comment