NineTileBoxComponent constructor

NineTileBoxComponent({
  1. NineTileBox? nineTileBox,
  2. Vector2? position,
  3. Vector2? size,
  4. Vector2? scale,
  5. double? angle,
  6. Anchor? anchor,
  7. int? priority,
})

Takes the NineTileBox instance used to render this box.

It uses the x, y, width and height coordinates from the PositionComponent to render.

Implementation

NineTileBoxComponent({
  this.nineTileBox,
  Vector2? position,
  Vector2? size,
  Vector2? scale,
  double? angle,
  Anchor? anchor,
  int? priority,
}) : super(
        position: position,
        size: size,
        scale: scale,
        angle: angle,
        anchor: anchor,
        priority: priority,
      );