read static method

ActorJellyBone read(
  1. ActorArtboard artboard,
  2. StreamReader reader,
  3. ActorJellyBone? node
)
override

Implementation

static ActorJellyBone read(
    ActorArtboard artboard, StreamReader reader, ActorJellyBone? node) {
  // ignore: parameter_assignments
  node ??= ActorJellyBone();

  // The Jelly Bone has a specialized read that doesn't go down the typical
  // node path, this is because majority of the transform properties
  // of the Jelly Bone are controlled by the Jelly Controller and are
  // unnecessary for serialization.
  ActorComponent.read(artboard, reader, node);
  node.opacity = reader.readFloat32('opacity');
  node.collapsedVisibility = reader.readBool('isCollapsed');
  return node;
}