I’ve seem to hit an issue when testing some ideas out in blueprints. I want to make actor selection brackets (context brackets?). I made a rough prototype using Draw Line for HUD, but I feel there maybe a better, more efficient, and simple way. I initially thought I could use a texture, but that will run into scaling issues for various sized objects.
How is the scaling supposed to work? Is it distance based, is it target size based, is this fixed size? A combination of factors perhaps?
Have you tried a 9-slice widget border - a widget element whose central area can stretch while the borders maintain aspect ratio - see here and check Setting Border States section here. This would also allow you to easily incorporate text easily since it’s a widget.
Also, there is a thread in the forums (a hover tank game I believe) where it’s the mesh screen size that dictates the scaling - not sure if that’s what you’re after, though.
The 9-slice widget border I feel, is exactly what I need. I did not think of widgets as a possible solution as I’m not used to such fancy UI tools, and I am ignorant of many of the features of UE. This will make things easier than expected, especially the corner scaling.
I was thinking of simply drawing a texture to screen and scaling it by how you mentioned–mesh screen size–up/down to a certain size. Naturally, distance will also cause scaling to occur through a perspective view. The brackets will be clamped to a certain minimum(very small objects)/maximum(very large objects) size, and perhaps the brackets will scale for tiny objects, but retain their thickness. Deusex and Neocron are two examples of bracketing systems I like most, so I’ll spend some more time studying them and how best to emulate their function.
I can swear you posted a neat C++ based solution to this. I only found the above thread, though Any chances you could unearth it or suggest a good keyword for searching?
I did, but unfortuantely it was on the Wiki that Epic decided to terminate with no prior warning. Luckily there’s a backup here. It’s a bit dated but it may still work!
Wow-wee! That looks very nice, TheJamsh It seems in my quest to find guiding documentation on this sort of feature, Battlezone-esque gameplay has been a common style! The tank looks very spiffy!