Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Canvas Render Target 2D Canvas Project always returns center position

Hey everyone,

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!

Canvas Blueprint

Product Version: UE 4.16
more ▼

asked Sep 03 '17 at 02:10 AM in Blueprint Scripting

avatar image

103 9 10 16

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question