Forum begins after the advertisement:
-
::
I wonder, why the heart parent and mana container not in canvas? when I want to change the position use Rect Transform it don’t change so I wonder maybe the heart parent and mana container not include in the canvas T_T, but the when I see in the hierarchy it’s same with the video or.. I miss something??
::It sounds like you’re having trouble with the positioning of your UI elements (heart parent and mana container) in Unity. Here are a few things you can check to troubleshoot this issue:
-
Hierarchy Structure: Make sure that both the heart parent and mana container are indeed children of the Canvas in the hierarchy. If they are not, they won’t be positioned correctly in relation to the Canvas.
-
Rect Transform: If the Rect Transform properties of your heart parent and mana container are not updating, try the following:
- Select the heart parent or mana container in the hierarchy.
- In the Inspector panel, make sure that the anchors are set correctly. If the anchors are not set, they might not position correctly within the Canvas.
- Try resetting the Rect Transform by right-clicking on the Rect Transform component and selecting “Reset.” This will set the position, rotation, and scale back to default.
-
Canvas Settings: Check the Canvas settings:
- Make sure the Canvas is set to “Screen Space – Overlay” or “Screen Space – Camera” (depending on your setup) as appropriate for your UI.
- If using “Screen Space – Camera,” ensure that the Camera is set correctly in the Canvas settings.
-
Sorting Order: If the heart parent and mana container are still not visible, check the sorting order of the Canvas and other UI elements. They might be rendered behind other elements.
-
Check for Errors: Look at the Console window for any errors or warnings that might give you a clue as to what might be going wrong.
-
Update and Apply Changes: Sometimes Unity needs you to apply changes manually. After making adjustments to the Rect Transform, ensure you hit “Apply” if you are working with prefabs.
If you’ve checked all of these and the issue persists, please provide more details about how you’ve set up your Canvas and the UI elements, and any specific errors you might be encountering. This will help in diagnosing the problem further.
:: @32sitifajrinmaulidiya you need to repost your screenshot. It is not displaying correctly.