Protobuf.ReadVector2D Method

Reads an XY vector value from a protobuf message.

void ReadVector2D(const char[] field, float buffer[2], int index)

Parameters

const char[] field

Field name.

float[2] buffer

Destination vector buffer.

int index

Index into repeated field.

Errors

Non-existent field, or incorrect field type.