RenderableSprite constructor

RenderableSprite({
  1. dynamic id = 0,
  2. dynamic object,
  3. dynamic z = 0,
  4. dynamic material,
  5. dynamic renderOrder = 0,
  6. num x = 0,
  7. num y = 0,
  8. Euler? rotation,
  9. Vector3? scale,
})

Implementation

RenderableSprite({
  id = 0,
  object,
  z = 0,
  material,
  renderOrder = 0,
  this.x = 0,
  this.y = 0,
  Euler? rotation,
  Vector3? scale,
}) {
  this.scale = scale ?? Vector3();
  this.rotation = rotation ?? Euler();

  this.id = id;
  this.object = object;
  this.z = z;
  this.material = material;
  this.renderOrder = renderOrder;
}