在后台加载节点
远离摄像机的节点的后台加载使您可以节省RAM并增加世界加载。
UNIGINE提供了一个World Layer节点,该节点可以包含成千上万个其他节点,并从一定距离开始在后台执行这些节点的加载。例如,如果您的节点距离相机很远,可以将其添加到“世界图层”中,并指定到相机的距离,从这些节点开始加载。这样,您可以提高应用程序的性能:仅当摄像机触发加载World Layer节点时才加载节点。
World Layer节点由.node文件表示,该文件存储一个或多个要在后台加载的节点。因此,要将World Layer用于内容优化,应执行以下操作:
- 使用.node file in one of the ways described here.
- 在菜单栏中,选择Create -> Optimization -> World Layer并指定在上一步中创建的.node文件。
- 将节点放置在世界上。 In the World Hierarchy, the World Layer will be presented as a single node. You can expand it to access nodes stored inside.
世界层崩溃扩展了世界图层
- 在Parameters窗口的World Layer标签中,指定加载和清除距离。
距离是从边界框的最近面计算得出的。您可以通过启用Point选项将中心点用于计算。
- 如有必要,请为other settings for the World Layer.
要检查结果,请将相机设置在距图层所需的距离处,锁定,然后重新加载世界。加载世界后,开始将相机移向图层:以指定距离加载图层。
也可以看看
最新更新:
2020-10-02
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)