Canvas Render Target 2D Canvas Project always returns center position
I am using the Canvas Render Target 2D on a static mesh material to draw a polygon at specific world locations on that mesh. I am having trouble getting the right screen position though using the Project(). No matter what vector values I pass into it, it always returns the exact center, so when I use a 1024w x 1024h canvas and pass into Project() any vector, the output is always 512x512x0. I have tried to instead use the ProjectWorldToScreen() to get the screen position but that didn't seem to take into account the static meshs location and was offset based on the players viewport, which isn't what I want.
Am I using Canvas::Project() incorrectly? Or is there something I am just missing. Or some other way I might be able to get a world location to match my static mesh's canvas screen position.
If it helps, the game is 2D with a top down camera and the static mesh canvas is just a plane.
Thanks in advance!
asked Sep 03 '17 at 02:10 AM in Blueprint Scripting
Follow this question
Once you sign in you will be able to subscribe for any updates here