Cocos Creator API

1.3.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