mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:13:09 +08:00
4 lines
104 B
JavaScript
4 lines
104 B
JavaScript
---------------------------------
|
|
var size = cc.winSize;
|
|
node.setPosition(size.width/2, size.height/2);
|