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

Add a new Text on the controller of a player.

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.controller(playerID).addText(0,{x:200, y:300, text: "Ubanita", fill: "#F0F", font: "italic bold 24px" });

See all methods of the api.