Hello! Has anyone had the problem where a widget component, attached to a character, moves around as the character moves? I included some examples below. I have added healthbar, names, and a little resistances tile to each enemy (though not all enemies have resistances) as widget componenets in their BPs. Then just attached a created widget to that component. Nothing special. I’ve noticed that the farther an enemy is away from me, the more skewed in that particular direction the Widget components are. I’ve messed around with positioning and settings in the component/widget, but to no avail. don’t see anything pertinent on google as this is for top-down and not much applies. Any help is appreciated!
In this image you can see the resistance widget just slightly to the left.
When i move away from them, it moves farther left (hope this makes sense). It does the same when i am to the right of them. It is only centered when they are right above or below me.
It is hard to catch a screenshot with them farther away, but when they are a distance from the character, the widgets are very skewed! Any help appreciated!
Also, i should note that the health bars and enemy names (pictured in the original images) also move around like this. I’d like them to be just static above the enemy. I have already tried adding the component to different places in the component hierarchy with no luck.
Yes, i have also moved this around a lot too just to experiment and hopefully find a solution. it is at -15 simply because its the last place i put it and honestly the best spot so far. It still moves around tho. I was hoping just having it dead center would make it stick but it is unfortunately not the case.
remove the canvas panel completely; you do not need it here (great performance boost by the way!); not sure if relevant but you probably do not need 500x500 px image for this.
the widget screen size will be dictated by the components Draw Size, punch in manually 30,30 (ideally do 32,32 if feasible)
Okay im going to try and reproduce it in a blank project for my own sanity in the morning and then send it over to you. I am certain that this has to do with the top down camera. Looking at some third person projects, the Z axis does not seem to change significantly with respect to the third person camera (Z always points up). So in top down camera perspective, the farther a player is away from something, it seems like its Z is pointing slightly in another direction with respect to the top down camera. Its almost like the camera is fish-eyed or something. i hope that makes sense. I know it shouldnt behave that way but it seems to be what im seeing.
Thank you so much! For this sample project i just went on a deletion frenzy of everything not directly related to what i have there in the example some times i hate that the solution is often to just update. Going from 5 to 5.1, i lost a lot of compatibility with market place assets and had to work around it. Maybe it is time to just update and deal with it… thanks for the input!