public void SetSize(int w, int h) { UI.UIBox box = uiElem as UI.UIBox; if (box == null) { return; } box.SetSize(w, h); }