Bitbybit Docs
    Preparing search index...

    Class CreateTextBlockDto (Inputs.BabylonGui)

    Feeds babylon.gui.textBlock.createTextBlock: the name, text, color, optional size and font size of a text block.

    Index

    Constructors

    • Parameters

      • Optionalname: string
      • Optionaltext: string
      • Optionalcolor: string
      • Optionalwidth: string | number
      • Optionalheight: string | number

      Returns CreateTextBlockDto

    Properties

    name: string

    Name the text block is known by, which control.getControlByName finds it by

    textBlockName
    
    text: string

    The text shown

    Hello World!
    
    color: string

    CSS color of the text

    #f0cebb
    
    width?: string | number

    Width, as a pixel string such as 200px or a fraction of the parent from 0 to 1; left out, the engine chooses

    undefined
    

    true

    height?: string | number

    Height, as a pixel string such as 200px or a fraction of the parent from 0 to 1; left out, the engine chooses

    undefined
    

    true

    fontSize: number

    Font size of the text, in pixels

    24