Protobuf.SetVector2D Method

Sets an XY vector on a protobuf message.

void SetVector2D(const char[] field, const float vec[2], int index)

Parameters

const char[] field

Field name.

const float[2] vec

Vector value to set.

int index

Index into repeated field.

Errors

Non-existent field, or incorrect field type.