PbSetVector2D Function

Sets an XY vector on a protobuf message.

void PbSetVector2D(Handle pb, const char[] field, const float vec[2], int index)

Parameters

Handle pb

protobuf handle.

const char[] field

Field name.

const float[2] vec

Vector value to set.

int index

Index into repeated field.

Errors

Invalid or incorrect Handle, non-existent field, or incorrect field type.