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
Using pixi v8.3.4 and ui v2.1.5, when trying to use a nineslicesprite bg for an Input
, it fails with a console warning: NineSliceSprite can not be used with views set as Container.
const input = new Input({
bg: Sprite.from(texture),
nineSliceSprite: [7,7,6,6],
});```
The text was updated successfully, but these errors were encountered:
In that case, It seems that latest the version prefers bg to be an actual string.
This is the code that handles this:
if(this.options?.nineSliceSprite){if(typeofbg==='string'){this._bg=newNineSliceSprite({texture: Texture.from(bg),leftWidth: this.options.nineSliceSprite[0],topHeight: this.options.nineSliceSprite[1],rightWidth: this.options.nineSliceSprite[2],bottomHeight: this.options.nineSliceSprite[3],});}else{console.warn('NineSliceSprite can not be used with views set as Container.');}}
Using pixi v8.3.4 and ui v2.1.5, when trying to use a nineslicesprite bg for an Input
, it fails with a console warning: NineSliceSprite can not be used with views set as Container.
The text was updated successfully, but these errors were encountered: