read method

KeyFrame read (
  1. StreamReader reader,
  2. ActorComponent component
)
override

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;
}