read static method

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

Implementation

static KeyFrame? read(StreamReader reader, ActorComponent? component) {
  KeyFrameShadowColor frame = KeyFrameShadowColor();
  if (!KeyFrameWithInterpolation.read(reader, frame)) {
    return null;
  }

  frame._value = reader.readFloat32Array(4, 'value');
  return frame;
}