Unreal Engine 4 – VaRest Storing Response in Variables (Response Code, Response Body)

VaRest one of the most popular plugins for blueprint REST api calling does allow you to also capture the response that comes back.

My issues were that whenever I tried to get the response code or the response body it wouldn’t pull the data (Response kept coming back as -1). Long story short, this is because I never used any event bindings, so effectively as the screenshot shows below, this will only run when the request is complete, before I was trying to store the data before the response even came back. Easy mistakes like this cost time!

Be aware, there’s no checking for fails in this, my view on this is, if the game login api is down, the game won’t launch anyway through other health checks!

 

 

Hope this blueprint helps you! My API is responding in JSON, I recommend your API do the same.

Unreal Engine 4 – Always show mouse on Widget/UI

If you’re like me you’ve used a widget for the UI over a version of the game world. A similar sort of style to how World of Warcrafts look

Obviously, not as great, but a similar concept!

You might be having an issue were the Cursor, when it clicks on the level it disappears! Then you need to do Shift+F1 to get it back again or wave it over the boxes you have.

No more! Simply change this setting on the widgets CanvasPanel and it will sort it right out!

Should make the Cursor appear over everything! No more clicking the world!