Protobuf.SetVector Method

Sets an XYZ vector on a protobuf message.

void SetVector(const char[] field, const float vec[3], int index)

Parameters

const char[] field

Field name.

const float[3] vec

Vector value to set.

int index

Index into repeated field.

Errors

Non-existent field, or incorrect field type.