Bitbybit Docs
    Preparing search index...

    Class Text3DUrlDto (Advanced.Text3D)

    Index

    Constructors

    • Parameters

      • Optionaltext: string
      • OptionalfontUrl: string
      • OptionalfontSize: number
      • Optionalheight: number
      • Optionalrotation: number
      • Optionalorigin: Vector3
      • Optionaldirection: Vector3
      • OptionaloriginAlignment: recAlignmentEnum

      Returns Text3DUrlDto

    Properties

    text: string

    要使用的字体类型

    bitbybit.dev
    
    fontUrl: string

    要加载并使用的字体 URL。如果提供了 Url,则字体将通过 opentype.js 加载。 支持的格式有:ttf、otf、woff。 请注意,opentype.js 不支持 Woff2,因为它是一种压缩格式。

    https://git-cdn.bitbybit.dev/latest/fonts/Tektur/Tektur-Bold.ttf
    
    fontSize: number

    字体的大小

    1.5
    

    0

    Infinity

    0.1

    height: number

    字体拉伸的高度,如果为 0 则返回面而不是实体

    0.2
    

    0

    Infinity

    0.1

    rotation: number

    生成文本的旋转

    0
    

    0

    Infinity

    15

    origin: Vector3

    文本的原点

    [0, 0, 0]
    
    direction: Vector3

    文本的方向

    [0, 1, 0]
    
    originAlignment: recAlignmentEnum

    原点对齐方式

    centerMiddle