Sprite aspect ratio
Cocos
APRIL 17, 2023
_addEventListeners() this.resize() } protected onDisable() { this._removeEventListeners() _removeEventListeners() } protected _addEventListeners() { director.on(Director.EVENT_AFTER_UPDATE, Director.EVENT_AFTER_UPDATE, this.resize, this) this.node.on(Node.EventType.SIZE_CHANGED, Node.EventType.SIZE_CHANGED, this.resize, this) this.node.on(Node.EventType.ANCHOR_CHANGED,
Let's personalize your content