UILayer is a container that manages scaling behavior for all its children
const hudLayer = new UILayer({ scaleMode: UIScaleMode.ScaleUI });scene.addChild(hudLayer);hudLayer.addChild(tabs.container); Copy
const hudLayer = new UILayer({ scaleMode: UIScaleMode.ScaleUI });scene.addChild(hudLayer);hudLayer.addChild(tabs.container);
Add a child and trigger scale update if needed
Update the layer's scale based on the current canvas size
UILayer is a container that manages scaling behavior for all its children
Example