打开和关闭节点
Simultaneous switching off some parts of the world that are far away from the camera helps to increase the performance.同时关闭世界上一些远离相机的部分有助于提高性能。
UNIGINE provides a World Switcher node that disables and enables all its children at a certain distance. To create and set up the Switcher, perform the following: UNIGINE提供一个World Switcher节点,该节点在一定距离处禁用并启用其所有子级。要创建和设置Switcher,请执行以下操作:
- In the Menu Bar, choose Create → Optimization → Switcher and add it to the world.在菜单栏中,选择Create → Optimization → Switcher并将其添加到世界中。
- Add all the nodes that should be switched on and off as children to the Switcher node: in the World Hierarchy, drag the nodes to the World Switcher node.将所有应作为子代打开和关闭的节点添加到Switcher节点:在World Hierarchy中,将节点拖到World Switcher节点。
- In the World Switcher tab of the Parameters window, specify the switching distances. If you specify the distance that is large enough (for example, several hundred meters), the nodes will disappear unnoticeably for a user. 在Parameters窗口的World Switcher选项卡中,指定切换距离。 如果您指定的距离足够大(例如,几百米),则对于用户而言,节点将消失得不明显。
也可以看看
最新更新:
2024-12-13
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)