public virtual void cloneFrom(txUIObject obj) { if (obj.GetType() != GetType()) { logError("ui type is different, can not clone!"); return; } setPosition(obj.getPosition()); setRotation(obj.getRotation()); setScale(obj.getScale()); }