假设我们有一个场景,该场景以空间节点为单位,名为 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.

Here's the scene that I'm trying this on.

发布评论