Blockbench Reference Docs
    Preparing search index...

    Namespace Canvas

    A global namespace handling miscellaneous functionality related to the 3D preview

    Variables

    bones
    brush_outline
    coloredSolidMaterials
    emptyMaterials
    face_order
    gizmo_colors
    gizmos
    global_light_color
    global_light_side
    gridMaterial
    ground_plane
    materials
    meshes
    meshOutlineMaterial
    meshVertexMaterial
    normalHelperMaterial
    onionSkinEarlierMaterial
    onionSkinLaterMaterial
    outlineMaterial
    pivot_marker
    scene
    show_gizmos
    solidMaterial
    transparentMaterial
    uvHelperMaterial
    wireframeMaterial

    Functions

    adaptObjectFaceGeo
    adaptObjectFaces
    adaptObjectPosition
    buildGrid
    clear
    getModelSize
    getRenderSide
    outlineObjects
    raycast
    updateAll
    updateAllBones
    updateAllFaces
    updateAllPositions
    updateAllUVs
    updateLayeredTextures
    updateMarkerColorMaterials
    updateOrigin
    updatePositions
    updateRenderSides
    updateSelected
    updateSelectedFaces
    updateShading
    updateUV
    updateUVs
    updateView
    updateVisibility
    withoutGizmos