Cocos Creator API

1.2.0

Cocos Creator is a highly customizable game development tool that utilizes the power of cocos2d-x.

ContainerStrategy

模块: cc

cc.ContainerStrategy class is the root strategy class of container's scale strategy, it controls the behavior of how to scale the cc.container and cc.game.canvas object

方法

preApply
(
  • view
)

Manipulation before appling the strategy

名称 类型 描述
view View

The target view

apply
(
  • view
  • designedResolution
)

Function to apply this strategy

名称 类型 描述
view View
designedResolution Size

postApply
(
  • view
)

Manipulation after applying the strategy

名称 类型 描述
view View

The target view

There are no methods that match your current filter settings. You can change your filter settings in the index section on this page. index