Optionalname: stringOptionaltext: stringOptionalcolor: stringOptionalwidth: string | numberOptionalheight: string | numberOptionalnameName the text block is known by, which control.getControlByName finds it by
OptionaltextThe text shown
OptionalcolorCSS color of the text
OptionalwidthWidth, as a pixel string such as 200px or a fraction of the parent from 0 to 1; left
out, the engine chooses
OptionalheightHeight, as a pixel string such as 200px or a fraction of the parent from 0 to 1; left
out, the engine chooses
OptionalfontFont size of the text, in pixels
Feeds
babylon.gui.textBlock.createTextBlock: the name, text, color, optional size and font size of a text block.