Skip to content

Commit

Permalink
Add getters (#14946)
Browse files Browse the repository at this point in the history
  • Loading branch information
Popov72 committed Apr 4, 2024
1 parent f063b66 commit a520e0c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/dev/gui/src/3D/controls/slider3D.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,27 @@ export class Slider3D extends Control3D {
return this._sliderBackplateMaterial;
}

/**
* Gets the slider bar mesh used by this control
*/
public get sliderBar(): AbstractMesh {
return this._sliderBar;
}

/**
* Gets the slider thumb mesh used by this control
*/
public get sliderThumb(): AbstractMesh {
return this._sliderThumb;
}

/**
* Gets the slider backplate mesh used by this control
*/
public get sliderBackplate(): AbstractMesh {
return this._sliderBackplate;
}

/** Sets a boolean indicating if the control is visible */
public set isVisible(value: boolean) {
if (this._isVisible === value) {
Expand Down

0 comments on commit a520e0c

Please sign in to comment.