dacha
    Preparing search index...

    Class BitmapText

    Draws text with a bitmap font.

    Hierarchy (View Summary)

    Index
    actor?: Actor

    The actor that has this component. It is undefined until the component is added to an actor.

    align: "left" | "center" | "right"

    Alignment of the text

    • left - Align text to the left edge
    • center - Center text horizontally
    • right - Align text to the right edge
    blending: "normal" | "addition" | "subtract" | "multiply"

    Blending mode of the text

    color: string

    Color of the text

    disabled: boolean

    Whether the text is disabled

    font: string

    Path to the font asset

    fontSize: number

    Size of the text

    opacity: number

    Opacity of the text

    sortingLayer: string

    Sorting layer of the text

    sortOffset: Point

    Center point of the text

    text: string

    Text to render

    • Returns the component of the same class on the parent actor.

      Returns Component<object> | undefined

      The component, or undefined if the actor has no parent actor or the parent has no such component.