Cocostudio 设置一个控件始终在屏幕中间

-- 设置背景层居中
-- 获取屏幕的宽度
local tsceneWidth = LG.CCDirector:sharedDirector():getVisibleSize().width
objFightSceneBottomUI.PageBackGroud:setAnchorPoint(Global_CCPointMake(0.5,0))
objFightSceneBottomUI.PageBackGroud:setPosition(Global_CCPointMake(tsceneWidth/2,0))

:14: 感谢分享