getnamo / UDP-Unreal

Convenience UDP wrapper for the Unreal Engine.
MIT License
322 stars 79 forks source link

Can decode a json message sent from python socket #19

Closed Guocode closed 3 years ago

Guocode commented 3 years ago

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?

Guocode commented 3 years ago

it's ok now

image

getnamo commented 3 years ago

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.