Cocos Creator API

1.5.x

Cocos Creator is the game engine for the future.

ContainerStrategy

Module: _decorator
Parent Module: 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

Methods

preApply
(
  • view
)

Manipulation before appling the strategy

name type description
view View

The target view

apply
(
  • view
  • designedResolution
)

Function to apply this strategy

name type description
view View
designedResolution Size

postApply
(
  • view
)

Manipulation after applying the strategy

name type description
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