Protobuf.SetFloat Method

Sets a float or double on a protobuf message.

void SetFloat(const char[] field, float value, int index)

Parameters

const char[] field

Field name.

float value

Float value to set.

int index

Index into repeated field.

Errors

Non-existent field, or incorrect field type.