Babylon GUI - Cannot read properties of null (reading '_getComponent')

I am doing it this way so the GUI classes are in a separate namespace

import * as GUI from '@babylonjs/gui'
  private _setupGUI() {
    const guiTexture = GUI.AdvancedDynamicTexture.CreateFullscreenUI('UI', true, this.scene)
    this.gui = guiTexture
  }

image

This works.

1 Like