read static method

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

Implementation

static ActorDrawable read(
    ActorArtboard artboard, StreamReader reader, ActorDrawable component) {
  ActorNode.read(artboard, reader, component);

  component.isHidden = !reader.readBool('isVisible');
  if (artboard.actor.version < 21) {
    component.blendModeId = 3;
  } else {
    component.blendModeId = reader.readUint8('blendMode');
  }
  component.drawOrder = reader.readUint16('drawOrder');

  return component;
}