We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd38987 commit 2b850adCopy full SHA for 2b850ad
1 file changed
src/gameobjects/GameObject.js
@@ -192,8 +192,7 @@ Object.defineProperties(Phaser.GameObject.prototype, {
192
193
set: function (value)
194
{
195
- this.transform._anchorX = value;
196
- this.transform._anchorY = value;
+ this.transform.setAnchor(value);
197
}
198
199
},
@@ -210,6 +209,7 @@ Object.defineProperties(Phaser.GameObject.prototype, {
210
209
211
212
this.transform._anchorX = value;
+ this.transform.dirty = true;
213
214
215
@@ -226,6 +226,7 @@ Object.defineProperties(Phaser.GameObject.prototype, {
226
227
228
this.transform._anchorY = value;
229
230
231
232
0 commit comments