read static method

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

Implementation

static KeyFrame? read(StreamReader reader, ActorComponent? component) {
  KeyFrameActiveChild frame = KeyFrameActiveChild();
  if (!KeyFrame.read(reader, frame)) {
    return null;
  }
  frame._value = reader.readFloat32('value').toInt();
  return frame;
}