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
Please Describe The Problem To Be Solved
It would be a nice addition if DisplayObjects were more type-friendly when it comes to handling children.
Pixi itself does that with Container.
constcontainer=newContainer<Sprite>();// Now I can manipulate children without casting type
(Optional): Suggest A Solution
Example using a List
constlist=newList<Graphics>({children: [newGraphics().beginFill(0x000000).drawRect(0,0,50,50),newGraphics().beginFill(0xFFFFFF).drawRect(0,0,50,50),],});console.log(list.children);// Type of Graphics[]
The text was updated successfully, but these errors were encountered:
Please Describe The Problem To Be Solved
It would be a nice addition if DisplayObjects were more type-friendly when it comes to handling children.
Pixi itself does that with
Container
.(Optional): Suggest A Solution
Example using a
List
The text was updated successfully, but these errors were encountered: