set(name,value) , method of scene

Change a setting of the scene.

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.scene.set("gravity.y", 200);

See all methods of the api.