Bitbybit Docs
    Preparing search index...

    Class CreateForMeshDto (Inputs.BabylonGui)

    babylon.gui.advancedDynamicTexture.createForMesh 使用:GUI 纹理包裹到的网格、纹理尺寸以及指针、alpha、翻转和采样选项。

    Index

    Constructors

    • Parameters

      • Optionalmesh: AbstractMesh
      • Optionalwidth: number
      • Optionalheight: number
      • OptionalsupportPointerMove: boolean
      • OptionalonlyAlphaTesting: boolean
      • OptionalinvertY: boolean
      • Optionalsampling: Bit.Inputs.BabylonTexture.samplingModeEnum

      Returns CreateForMeshDto

    Properties

    mesh: AbstractMesh

    绘制 GUI 的网格;它需要纹理坐标,通常选择平面

    undefined
    
    width?: number

    GUI 纹理的宽度,以像素为单位;省略时由引擎选择

    undefined
    

    true

    height?: number

    GUI 纹理的高度,以像素为单位;省略时由引擎选择

    undefined
    

    true

    supportPointerMove: boolean

    为 true 时,网格上的控件响应指针在其上移动,会有一些额外开销

    true
    
    onlyAlphaTesting: boolean

    为 true 时,透明像素被裁掉而非混合,可避免排序问题

    false
    
    invertY: boolean

    为 true 时,纹理上下翻转;默认值对大多数网格是正确的

    true
    

    纹理缩放时像素的读取方式:nearest 保持硬边像素,bilinear 和 trilinear 进行混合

    trilinear