read static method

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

Implementation

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

  component.width = reader.readFloat32('width');
  component.height = reader.readFloat32('height');
  component.sides = reader.readUint32('sides');
  return component;
}