Why I get errors with this code? cant get GUI.DrawTexture to use assigned to a variable texture.
'var SelHilight = Resources.Load("markRed"); GUI.DrawTexture (new Rect(UnitScreenPos2.x,UnitScreenPos2.x, 32, 32), SelHilight);'
I have texture named MyTexture.tga in Resources folder
How to assign this texture to a PRIVATE variable and then use it in GUIDrawTexture ?
Please explain from A to Z mentioned above. Thanks guys!