Protobuf.AddVector2D Method

Add an XY vector to a protobuf message repeated field.

void AddVector2D(const char[] field, const float vec[2])

Parameters

const char[] field

Field name.

const float[2] vec

Vector value to add.

Errors

Non-existent field, or incorrect field type.