Network.socket.emit Vector 3?

Hi there, I’m trying to get the position and eulers of an entity trough network socket emit as following:

      var objurl  ='Player TPC').children[2].name;
       var objrot  ='Player TPC').children[2].getLocalEulerAngles;

I can get the name and all other text responses no prob, but what about vector 3? Any workarounds? Or the only way is to set each axis as different post/response? Thanks

Hi @Newbie_Coder

Yes we usually serialise more complex objects like that, setting each Vector axis as a separate numeric property.

1 Like