[SOLVED] Can't set RectTransform

I don’t have option to set it.

but if I’m not wrong there should be something like this:

What am I doing wrong? Is this because this is image? I tried with text there is the same issue. Help pls

Does that GameObject have a parent? A RectTransform expresses relations to parents, so a GameObject at the root will have certain relations baked in. There are other limitations placed on RectTransform parameters with Canvas objects on them too. Also, layout components can freeze certain of those available fields because the layout is driving them.

2 Likes

UI components should be under a Canvas gameobject for certain reasons, but if you place the Image under any object that does not have a rect transform itself, then you can’t adjust it. Example is if you create an empty gameobject that has a transform component, then drag the image gameobject under it, it will not let you adjust that section.

3 Likes

Thanks

You saved my day! Thanks