Skip to content

NineSlice setFrame() doesnt work when updateSize is false #7110

@ChrisCPI

Description

@ChrisCPI

Version

  • Phaser Version:
    3.88.2
  • Operating system:
    macOS 15.3.1
  • Browser:
    Google Chrome

Description

When setFrame() is called on a NineSlice game object, and the updateSize parameter is set to false, the frame does not appear to update.

Example Test Code

https://phaser.io/sandbox/3r6cWwMn

Additional Information

In the above sandbox, there is one normal image and one nineslice, both with the same texture and frame. Both have the exact same interactive and listeners set to them, where the frame changes on pointerover and on pointerout. However, only the normal image appears to have its frame changed.

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