top of page

if (Input.GetKey ("x")) {
transform.localScale += new Vector3(1, 0, 0);
}
if (Input.GetKey ("y")) {
transform.localScale += new Vector3(0, 1, 0);
}
if (Input.GetKey ("z")) {
transform.localScale += new Vector3(0, 0, 1);
}

オブジェクトのサイズ変更

bottom of page