Hey there @nati1ik ! You could use a custom 9 slice widget or a border depending on how you want to style it a bit like this example I showed in an older thread.
Border widget:
Hi fellows, my goal is to create a highlighting rectangle around some moving objects. An example image is attached below. Pretty much like the result of some object detection algorithms.
I’m hoping that the rectangle could move with the object if possible, either physically or just following the object on the HUD.
Please help and thank you!
[WeChat908fe8cfa4b54df4f38646da95dac3c2]
9 slice (which you may need to setup like the border widget thread mentioned):
I just recently discovered the 9-slice scaling feature in UE4, but I can’t seem to wrap my head around how to calculate the margins.
For instance, take this simple image:
[Button_DefaultHovered.png]
This image is originally 256x256. This image will be used as it is (1:1) but I intend to use this image for buttons as well. This is where the 9-slice scaling comes in handy.
I want to button to look something like this:
[Tmp.png]
I tried messing around with the margins in UE4, but I can’t see…
1 Like