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