obj.transform.x=3;
がダメなのはなぜ?

var tmp=new Vector3(3,obj.transform.y,obj.transform.z);
obj.transform=tmp;
とわざわざ面倒なことしないといけないなんて