Accessing the global scope
未关闭
wontfix
- 主要语言
- C++
- 星标
- 1.1k
- 派生
- 80
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hello again!
I've been trying to figure out a way around this problem I've run into. QuickJS creates its own scope within Godot, but I need to access the javascript, the window variable, or the document variable included with the HTML document from a web build and I don't think that's possible.
Alternatively I could also import the js file into Godot and run it, but this js file attaches its methods to the window, and since window is not defined, there's no way to access them.
Has anyone else run into this problem?
贡献指南
调研方向
首先调查 QuickJS 如何在 Godot 中创建其 scope,以及 Web 构建如何暴露 HTML 文档的 javascript、window 和 document 全局对象。同时检查导入的 JavaScript 文件是否可以暴露附加到 window 的方法。完成标准应是明确界定一种受支持的方式来访问这些全局对象,或明确记录这一限制。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- web-dev
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 20/100