![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | rico345100 |
I’m making UI, and want to set anchor to middle of the image, but changing anchor from Layout → Anchors Only or setting Anchor value directly doesn’t work. The value was updated, but anchor point not moved at all. Is it bug or is there are something that I missed?
Here’s the node tree:
- CanvasLayer
- Control
- TextureRect ← Anchor is not moving at all
- Control
Using Godot 3.1.1.
Also I can’t find how to resize texture rect. I can set the min-size, but change size doesn’t work, the value immediately set back to original size. How to change the texture rect size?
Is your TextureRect inside a container node?
kidscancode | 2019-11-09 15:06
No, it’s inside of Control node. Should I change control node type to container? What’s the purpose of using container node?
rico345100 | 2019-11-09 15:51