read static method
Implementation
static KeyFrame? read(StreamReader reader, ActorComponent? component) {
KeyFrameGradient frame = KeyFrameGradient();
if (!KeyFrameWithInterpolation.read(reader, frame)) {
return null;
}
int len = reader.readUint16('length');
frame._value = reader.readFloat32Array(len, 'value');
return frame;
}