Hi I am having some issues where after moving an object that has a sprite attached to it (layer set up properly) and re parenting it it wouldn't show up i am at a loss

UIFrameDragable contcache = cont.GetComponentInChildren<UIFrameDragable>();
mTrans.parent = contcache.origParent;
cont.transform.parent = origParent;
mTrans
.localPosition = new Vector3
(0,
0,
-1);//cont.GetComponentInChildren<UIFrameDragable>().origParent.position; cont
.transform.localPosition = new Vector3
(0,
0,
-1);
cont.transform.parent.GetComponentInChildren<BattlePetsDragDropContainer>().collider.enabled = false;
mTrans.parent.GetComponentInChildren<DragDropContainer>().collider.enabled = false;
origParent = mTrans.parent;
contcache.origParent = contcache.transform.parent;
BroadcastMessage("CheckParent", SendMessageOptions.DontRequireReceiver);
cont.BroadcastMessage("CheckParent",SendMessageOptions.DontRequireReceiver);
any help would be good
