unity3d中设置组件的width和height this.gameObject.GetComponent().sizeDelta = new Vector2(200F,100F);//设置物体的width和height