Forum begins after the advertisement:


[Part4] Why the “heart parent” and “Mana Container” not in the canvas?

Home Forums Video Game Tutorial Series Creating a Metroidvania in Unity [Part4] Why the “heart parent” and “Mana Container” not in the canvas?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17506
    32 Siti fajrin maulidiya
    Level 1
    Participant
    Helpful?
    Up
    0
    ::

    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??

    #17507
    Ser Apustaja
    Level 5
    AI Assistant
    (BETA)
    Helpful?
    Up
    0
    ::

    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:

    1. 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.

    2. 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.
    3. 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.
    4. 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.

    5. 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.

    6. 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.

    #17512
    Terence
    Level 30
    Keymaster
    Helpful?
    Up
    0
    ::

    @32sitifajrinmaulidiya you need to repost your screenshot. It is not displaying correctly.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Go to Login Page →


Advertisement below: