Hello. I am trying to add an image of a health bar (not active, just an image for reference on where health WOULD be) however, it won’t show in scene or the game. I tried moving the Raw image up to UI and clicked the box just below ‘Inspector’ and I even tried creating a GameObject and creating an RAW image that way but nothing seems to be working, I tried with other textures I have but, nothing.
The box below inspector is the Active toggle box - if it’s off, the object is disabled - it will not show in game or scene, and unity will not call runtime functions like Update()
on scripts attached to this object.
The active property is inherited - that means if a parent of the object is disabled, then children will also always be disabled. You can see if an object is disabled by looking at its name in the hierarchy or colour of the cube icon next to the name of an object.
So - in order to see this object, it has to be activated. If it still doesn’t work, try to set rotation of the health bar to (0,180,0)
Possibly worth mentioning for anyone else running into this issue, that RawImage won’t render unless it’s a child of a Canvas. (SpritrRenderer does not have this limitation).