i wanna do this
#pragma strict
function Start () {
guiTexture.pixelInset.width = Screen.width;
guiTexture.pixelInset.height = Screen.height;
}
function Update () {
}
but not to a guitexture, i waan do it to a gameobj
i wanna do this
#pragma strict
function Start () {
guiTexture.pixelInset.width = Screen.width;
guiTexture.pixelInset.height = Screen.height;
}
function Update () {
}
but not to a guitexture, i waan do it to a gameobj
I don’t know exactly what you wan’t to archieve but for scaling GameObject use:
transform.localScale = new Vector3(X, Y, transform.localScale.Z); //We don't changing Z scale now
//where X is Screen.width and Y is Screen.height
Hope that helps,
Paul