Skip to content

Add and Get Struct is bug #28

@nvh2001

Description

@nvh2001

I try to send struct with byter but error, the data is null. Tks

private void Start()
{
    // set data
    Primitive primitive = new();
    var a = new ServerResponse() { typeResponse = TypeResponse.WebSocketConnectSucces, message = "xxx1" };
    primitive.Add.Struct(a);


    // get data
    byte[] buffer = primitive.GetBytes();
    var message = Encoding.UTF8.GetString(buffer);
    Debug.Log(message);
}

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions