| 123456789101112131415161718192021222324 |
- import { Control3D } from "./control3D";
- import { TransformNode, Scene } from "babylonjs";
- /**
- * Class used as a root to all buttons
- */
- export class AbstractButton3D extends Control3D {
- /**
- * Creates a new button
- * @param name defines the control name
- */
- constructor(name?: string) {
- super(name);
- }
- protected _getTypeName(): string {
- return "AbstractButton3D";
- }
- // Mesh association
- protected _createNode(scene: Scene): TransformNode {
- return new TransformNode("button" + this.name);
- }
- }
|