This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
专业(SIM)
UnigineEditor
界面概述
资源工作流程
版本控制
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
创建内容
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

打开和关闭节点

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,请执行以下操作:

  1. In the Menu Bar, choose Create → Optimization → Switcher and add it to the world.在菜单栏中,选择Create → Optimization → Switcher并将其添加到世界中。
  2. 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节点。
  3. 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选项卡中,指定切换距离

    如果您指定的距离足够大(例如,几百米),则对于用户而言,节点将消失得不明显。

也可以看看

最新更新: 2020-10-02
Build: ()