fairygui-three 版本0.9.2调用显示Vector3报错

引入包后调用,报错如下:
fairygui.min.js:1
Uncaught TypeError: Cannot read properties of undefined (reading 'Vector3')
 
调用代码如下:
```
import * as fgui from "fgui";
// Load resources
fgui.UIPackage.loadPackage("assets/123.fairypackage").then((uiPackage) => {
    // Initialize the UI
    initUI(uiPackage);
  });
  function initUI(uiPackage) {
    // Create a GComponent
    const mainUI = uiPackage.createObject("MainUI").asCom;
 
    // Set the UI size
    mainUI.setSize(fgui.GRoot.inst.width, fgui.GRoot.inst.height);
 
    // Add the UI to the stage
    fgui.GRoot.inst.addChild(mainUI);
  }
```
 
已邀请:

rain - 90后IT男

赞同来自:

操作复现步骤:开新空工程直接在html文件引入min.js

overfairy

赞同来自:

您解决了吗?

要回复问题请先登录注册