qc.GameObjectFactory.toggle

Prototype

Paramters

Paramter Type Description
parent qc.Node Optional node to add the object to. If not specified it will be added to the World.

Description

Create a qc.Toggle.

Example

    var toggle = game.add.toggle(game.world)