UNPKG

@babylonjs/gui

Version:

For usage documentation please visit the [GUI documentation](https://doc.babylonjs.com/features/featuresDeepDive/gui/).

22 lines (21 loc) 885 B
import { type TransformNode } from "@babylonjs/core/Meshes/transformNode.js"; import { type AbstractMesh } from "@babylonjs/core/Meshes/abstractMesh.js"; import { type Mesh } from "@babylonjs/core/Meshes/mesh.js"; import { type Scene } from "@babylonjs/core/scene.js"; import { Button3D } from "./button3D.js"; /** * Class used to create an interactable object. It's a 3D button using a mesh coming from the current scene */ export declare class MeshButton3D extends Button3D { /** @internal */ protected _currentMesh: Mesh; /** * Creates a new 3D button based on a mesh * @param mesh mesh to become a 3D button * @param name defines the control name */ constructor(mesh: Mesh, name?: string); protected _getTypeName(): string; protected _createNode(scene: Scene): TransformNode; protected _affectMaterial(mesh: AbstractMesh): void; }