PbSetVector Function

Sets an XYZ vector on a protobuf message.

void PbSetVector(Handle pb, const char[] field, const float vec[3], int index)

Parameters

Handle pb

protobuf handle.

const char[] field

Field name.

const float[3] vec

Vector value to set.

int index

Index into repeated field.

Errors

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