Changing the position of a child:

I need to zero out a panel attached to a gameobject and I want to raise it up. Nothing I do moves the panel at all.

I tried grabbing the RectTransform but that did not work either.

RectTransform UIpos = attachPanel.GetComponent<RectTransform>();
                UIpos.transform.localPosition = new Vector3(0, 0, 6.0f);

I am able to rotate the panel but can not move it.

Try RectTransform.anchoredPosition.

If that doesn’t work then the problem could be e.g. that a parent has a LayoutGroup component which is overriding the position.

.transform. is not needed here, but removing it won’t solve the problem, it just not needed. SisusCo is right, if it doesn’t move, then something must be holding it back. If you are not sure about this, test that line of code you posted in a empty project. It will work.

This is how I solved it.

attachPanel.transform.localPosition = new Vector3(gmeshr.bounds.center.x, gmeshr.bounds.center.y, sizey + 2.0f);

For some reason when the canvas prefab is instantiated the transforms are all jacked up. z is up and down.