PbSetColor Function

Sets an RGBA color on a protobuf message.

void PbSetColor(Handle pb, const char[] field, const int color[4], int index)

Parameters

Handle pb

protobuf handle.

const char[] field

Field name.

const int[4] color

Color value to set.

int index

Index into repeated field.

Errors

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