getnamo/UDP-Unreal

Can decode a json message sent from python socket

Guocode opened this issue · 2 comments

image
this is my python code
image
this is the bp

image
I can receive the string, but i seems to be failed to decode to a json object, where is the problem?

it's ok now

image

See https://github.com/getnamo/socketio-client-ue4#decoding-responses for more detailed options on how to decode your message as this plugin depends on socket.io for json operations.

In particular I recommend you make a Struct that matches your message object type e.g. eye_left etc members with float params and then directly decode to that object using JsonObjectToStruct.