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