Protobuf.SetColor Method

Sets an RGBA color on a protobuf message.

void SetColor(const char[] field, const int color[4], int index)

Parameters

const char[] field

Field name.

const int[4] color

Color value to set.

int index

Index into repeated field.

Errors

Non-existent field, or incorrect field type.