qc.GameObjectFactory.button

Prototype

Parameters

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 new Button.

Example

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