It only shows a semi transparent blue gui on the screen but no texture, anyone know how to solve this? Thanks
edit: hmm…anyway this is the script to atlas textures for GUI right?
edit: okay nvm, I think I’m using the wrong approach, solve this problem by using texture2D and set getpixels, Thanks anyways.
var tileTexture : Texture;
var tHeight:int=49;
var tSize:int=200;
var tileX:int=337;
var tileY:int=503;
function OnGUI () {
GUI.DrawTextureWithTexCoords(
new Rect(new Rect(tileX,tileY, tHeight, tHeight)),
tileTexture,
new Rect(0,200,tSize, tSize));
}