Bitbybit Docs
    Preparing search index...

    Class CreateForMeshDto (Inputs.BabylonGui)

    Feeds babylon.gui.advancedDynamicTexture.createForMesh: the mesh a GUI texture is wrapped onto, the texture size and the pointer, alpha, flip and sampling options.

    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

    The mesh the GUI is drawn on; it needs texture coordinates, a plane being the usual choice

    undefined
    
    width?: number

    Width of the GUI texture in pixels; left out, the engine chooses

    undefined
    

    true

    height?: number

    Height of the GUI texture in pixels; left out, the engine chooses

    undefined
    

    true

    supportPointerMove: boolean

    When true, controls on the mesh react to the pointer moving over them, at some extra cost

    true
    
    onlyAlphaTesting: boolean

    When true, transparent pixels are cut out instead of blended, which avoids sorting problems

    false
    
    invertY: boolean

    When true, the texture is flipped top to bottom; the default is right for most meshes

    true
    

    How texture pixels are read when scaled: nearest keeps hard pixels, bilinear and trilinear blend them

    trilinear