private void AnchotObjectToTable(GameObject obj, int row)
{
obj.transform.localScale = Vector3.one;
UIWidget widget = obj.GetComponent <UIWidget>();
widget.leftAnchor.target = table;
widget.rightAnchor.target = table;
widget.bottomAnchor.target = table;
widget.topAnchor.target = table;
widget.leftAnchor.relative = 0;
widget.leftAnchor.absolute = 0;
widget.rightAnchor.relative = 1;
widget.rightAnchor.absolute = 0;
widget.bottomAnchor.relative = 1;
widget.bottomAnchor.absolute = (row + 1) * -height;
widget.topAnchor.relative = 1;
widget.topAnchor.absolute = row * -height;
widget.Update();
}