Occluder2DParam: {
    layerMask?: number;
    poly: PolygonPoint2D | number[];
    px?: number;
    py?: number;
    rot?: number;
    sx?: number;
    sy?: number;
}

创建遮光器的参数结构体

类型声明

  • 可选layerMask?: number
  • poly: PolygonPoint2D | number[]
  • 可选px?: number
  • 可选py?: number
  • 可选rot?: number
  • 可选sx?: number
  • 可选sy?: number