Size and distance relationship
I have the UMG widget target indicator,
I need to change its size depending on the distance to the object (something like height and distance relationship)
Widget should always be the same size as the object.
How can I do that ? What is the formula for this ?
asked Aug 05 '15 at 09:40 AM in C++ Programming
The way to do this is to calculate the bounds of the object. Then project those bounds into screen space. Then draw the overlay based upon the projected bounds.
answered Aug 05 '15 at 08:20 PM
I found a simple formula for this. In NativeTick:
Follow this question
Once you sign in you will be able to subscribe for any updates here