Forum begins after the advertisement:


[Part 4] I can´t successfully give the image component to my prefab

Home Forums Video Game Tutorial Series Creating a Metroidvania in Unity [Part 4] I can´t successfully give the image component to my prefab

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14784
    Henrique Martims
    Participant

    I’m trying to make my game UI to display health and I’m following the tutorial on youtube, but whenever I try to apply the image component to my Heart Container Prefab the following error occurs: “Prefab mismatch: The instance of type Transform in the scene is referencing a corresponding source object of type RectTransform in the Prefab.
    Fixing by replacing Transform with RectTransform. Some references might be lost.”
    And the image doesn’t load, I have no idea what’s causing this and would appreciate some advice.

    #14787
    Joseph Tang
    Moderator

    Sorry, but I may need more information for this, could you record a video of you replicating the issue? Could you show the entire health bar’s prefab components in the inspector and the creation of the image?

    I am uncertain but i can only guess that the Image component you are setting is different from the UI image component, but it’s quite unlikely.

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

Go to Login Page →


Advertisement below: