We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d38e54 commit ebd0bb8Copy full SHA for ebd0bb8
src/Stuff/CustomHolographicButton.ts
@@ -304,8 +304,8 @@ export class CustomHolographicButton extends Button3D {
304
305
protected _applyFacade(facadeTexture: AdvancedDynamicTexture) {
306
facadeTexture.scaleTo(
307
- this._options.width * this.contentResolution,
308
- this._options.height * this.contentResolution
+ this._options.width * (typeof (this.contentResolution) === "number" ? this.contentResolution : this.contentResolution.width),
+ this._options.height * (typeof (this.contentResolution) === "number" ? this.contentResolution : this.contentResolution.height)
309
);
310
facadeTexture._rootContainer.scaleX = 1;
311
facadeTexture._rootContainer.scaleY = 1;
0 commit comments