Skip to content

createBitmapMask() is inconsistent when used on Shapes #5976

Closed
@samme

Description

@samme

Version

  • Phaser Version: 3.55.2

Description

When called on a Shape game object, createBitmapMask(shape) makes a working mask but createBitmapMask() doesn't.

Example Test Code

Given a Shape:

const rect = this.add.rectangle(0, 0, 200, 150, 0xffff00);

This makes a working mask:

const mask = rect.createBitmapMask(rect);

This doesn't:

const mask = rect.createBitmapMask();

Both calls succeed, but only the first mask has a visual effect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions