read static method

ActorDistanceConstraint read(
  1. ActorArtboard artboard,
  2. StreamReader reader,
  3. ActorDistanceConstraint? component
)
override

Implementation

static ActorDistanceConstraint read(ActorArtboard artboard,
    StreamReader reader, ActorDistanceConstraint? component) {
  // ignore: parameter_assignments
  component ??= ActorDistanceConstraint();
  ActorTargetedConstraint.read(artboard, reader, component);

  component._distance = reader.readFloat32('distance');
  component._mode = reader.readUint8('modeId');

  return component;
}