addText(layer, ...properties) -> id , method of scene

Add a new Text to this layer of the world.

Parameters:
name type description
layer int layer of the world (must be >= 0)
properties …Object each with Text parameter for a Text
Returns

the identifier (int) of the sprite

//  a new Text with its left bottom corner at 200,300.

UB.scene.addText(0,{x:200, y:300, text: "Ubanita", fill: "#F0F", font: "italic bold 24px" });

See all methods of the api.