This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
UnigineEditor
界面概述
资产工作流程
设置和首选项
项目开发
调整节点参数
Setting Up Materials
Setting Up Properties
照明
Landscape Tool
Sandworm
使用编辑器工具执行特定任务
Extending Editor Functionality
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Objects
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
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
创建内容
Materials
Art Samples
Tutorials
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

打开和关闭节点

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选项卡中,指定切换距离

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

也可以看看

最新更新: 2021-04-29
Build: ()