Forum begins after the advertisement:
-
::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.
::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.
Advertisement below: