ContentStrategy
类型
cc.ContentStrategy class is the root strategy class of content's scale strategy, it controls the behavior of how to scale the scene and setup the viewport for the game
索引
方法
Details
方法
preApply
策略应用前的操作
meta | description |
---|---|
定义于 | cocos2d/core/platform/CCView.js:1141 |
参数列表
view
View The target view
apply
调用策略方法
meta | description |
---|---|
返回 | Object |
定义于 | cocos2d/core/platform/CCView.js:1151 |
参数列表
postApply
策略调用之后的操作
meta | description |
---|---|
定义于 | cocos2d/core/platform/CCView.js:1165 |
参数列表
view
View The target view