webani - v1.0.0
    Preparing search index...

    Type Alias TextComponentOptions

    Options for creating a text component.

    type TextComponentOptions = {
        fontSize?: number;
        material?: WebaniMaterialOptions;
        position: Vector3;
        string: string;
    }
    Index

    Properties

    fontSize?: number

    The font size for the text. Defaults to 72.

    Optional material to style the text.

    position: Vector3

    The position of the text in 3D space.

    string: string

    The string of text to be rendered.