I’m going to post some helpful BP Functions that I either make or come by here:
Draw Smart Texture
Usage: I use this to to place my interface HUD objects in the same space as designed in photoshop on screen and have this auto align and scale to different resolutions.
Parameters:
XPos and YPos
-Start X and Y from Photoshop where the interface object sits.
Width and Height
-The Height and width of the image
Idea Screen Size
-This is the Doc Size of the canvas in photoshop in my case 1920x1080
Get Adjusted Screen POS and Size
Usage: This scales the input by the Idea Size and the actual size of the game screen. Also Note that here you can do exact scale or keep the aspect ratio by only only scaling the height and width by the x width ratio.
I would like this to be a collection of useful BP Functions as I clean up the BP code i have I would like to share more so we all can learn and grow. Please share your helpful BP Functions here as well.
Thanks,
Kevin