Material not drawing to UCanvasRenderTarget2D
This draws a line and a material to a UCanvasRenderTarget2D from the delegate triggered by UpdateResource(). The material draws to the screen fine from blueprint but drawing to the texture doesn't appear to work. As the Line and Material are sharing a set of coordinates you should expect to see a Crosshair where the line and bullets are intersecting. However the Material is clearly not there.
The Material tile appears to be added to the Renderbatch correctly so I'm not sure what's going on.
asked Jun 05 '15 at 08:34 PM in C++ Programming
Typically whenever I resort to posting a question I then solve the problem ten minutes later.
I didn't realize that CoordinateSize is Normalized (I only noticed when I went and fiddled with the DrawMaterial node in blueprint) so my value of 128,128 was FAR too large and the crosshair material was too small to see.
answered Jun 05 '15 at 08:43 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here