ue4-rts
ue4-rts copied to clipboard
Not seeing health bar or selection circle
I am having an issue where I do not see either health bars or selection circles for my units. I have been referencing both documentation and the example project. The example works fine but my own project does not, I see a health bar for a brief moment on launch and then never again, the selection circle never appears. I am not sure if maybe I missed something but I have cross referenced and theoretically have the exact same setup as the example. The example project is working as expected, I can only assume maybe there is an extra step that isn't in the documentation.
This is in the same version of UE5 (p2) for both my project and the example.
Does your selection circle have a material set? There is a shipped Circle found in the plugin content. Also make sure, that you have selected the correct player controller which is in charge for the selection.
Also your Inputs could be a problem. Check, if you have copied the inputs from the demo project
I had a material set and everything.
I did eventually figure it out. The draw size of the circle is based on the collision component of the units. Basically after lots of testing, you need to put capsule collision on the unit, which will determine circle size. This cannot be anything other than capsule from the looks of it.
As i look into the code, it should work with every ShapeComponent. So Box, Sphere and Capsule should work
Also the Decal only projects on other actors. So if your actor is not on the ground, then you can't see the decal