Protobuf.ReadColor Method

Reads an RGBA color value from a protobuf message.

void ReadColor(const char[] field, int buffer[4], int index)

Parameters

const char[] field

Field name.

int[4] buffer

Destination color buffer.

int index

Index into repeated field.

Errors

Non-existent field, or incorrect field type.