访问引擎源中场景的节点,这可以在哪里发生?

发布于 2025-02-08 04:30:37 字数 1056 浏览 1 评论 0 原文

假设我们有一个场景,该场景以空间节点为单位,名为 node_of_interest 带有儿童 mesh_of_interest ,源代码中的某个地方是否可以访问这些节点?

我以为Scenetrey将是正确的起点,因为它具有 节点 * current_scene ,但是当我在断点在这里 我从未看到 current_scene 不是null。

我觉得有了这些信息,我将更好地了解节点与服务器和驱动程序的关系。

这是我在尝试的场景。

Say we have a scene that starts with a spatial node named Node_of_interest with a child Mesh_of_interest, is there somewhere in the source code where we can access these nodes?

I assumed the SceneTree would be the right place to start since it has Node * current_scene , but when I step through in the debugger on a breakpoint here
I never see current_scene as not null.

I feel like with this information I'll have a much better handle on how the nodes relate to servers and drivers.

enter image description here

Here's the scene that I'm trying this on.
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文