set(name,value) , method of game

Change a setting of the game.

See Game settings

Parameters:
name type description
name string name of the setting
value can be a integer,float,string or boolean
//  change the gravity force to be 200 m/s2

UB.game.set("gravity.y", 200);

See all methods of the api.