You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Which is weird, because the documentation for this method on the NineSlice object says:
This method is included but does nothing for the Nine Slice Game Object, because the size of the object isn't based on the texture frame. You should not call this method.
Edit: I realize that this may be an obvious realization, since this is probably what it does when updateSize is false. But if this supposedly "does nothing" like the documentation says, then why would it hinder it?
Version
3.88.2
macOS 15.3.1
Google Chrome
Description
When
setFrame()
is called on a NineSlice game object, and theupdateSize
parameter is set tofalse
, 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 onpointerout
. However, only the normal image appears to have its frame changed.The text was updated successfully, but these errors were encountered: