function GenerateTexture()
{
local Texture targetTexture;
aScriptedTexture = ScriptedTexture(Level.ObjectPool.AllocateObject(class'ScriptedTexture')); // this spawns a unquie Scripted texture for us to use
aScriptedTexture.SetSize(512,512);
targetTexture = Texture(DynamicLoadObject("Texture.name", class'Texture'));
aScriptedTexture.DrawTile(0,0,targetTexture.USize,targetTexture.VSize,0,0,targetTexture.USize,targetTexture.VSize,targetTexture,BackColor); // Draws the tile background
}