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

调试IG应用程序

警告
本文介绍的功能在 Community SDK 版本中不可用。
您应该升级到 Sim SDK版本才能使用它。

The debug mode allows inspecting the IG application at run-time. In this mode you can use various console commands to obtain corresponding visual information.调试模式允许在运行时检查IG应用程序。在这种模式下,您可以使用各种控制台命令来获取相应的视觉信息。

Path Tracing mode enabled启用路径跟踪模式

To enable the Debug mode, open the built-in console (use the F1 key) and type ig_debug 1.要启用调试模式,请打开内置控制台(使用重音符`)键,位于ESC键下方),然后键入ig_debug 1

Console Commands控制台命令#

Visualization of debugging information.可视化调试信息。

ig_debug
说明/描 述:
  • 变量。   打印一个值,该值指示是否启用了以下命令控制的选项。
  • 命令。   Toggles the debug mode.切换调试模式。
参数:
0 -
1 -
ig_debug_requests
说明/描 述:
  • 变量。   打印一个值,该值指示是否启用了以下命令控制的选项。
  • 命令。  

    Toggles visualization of where LOS/HAT/HOT requests are sent to.切换可视化位置LOS / HAT / HOT请求发送到。

参数:
0 -
1 -
ig_debug_pathtrace
说明/描 述:
  • 变量。   打印一个值,该值指示是否启用了以下命令控制的选项。
  • 命令。  

    Toggles tracing of the entity path — the position between frames and data sent over the network. Blue points mark data from the server; pink arrows — movement between frames.切换实体路径的跟踪-帧和通过网络发送的数据之间的位置。蓝点标记来自服务器的数据;粉色箭头-框架之间的运动。

参数:
0 -
1 -
ig_debug_collision_segment
说明/描 述:
  • 变量。   打印一个值,该值指示是否启用了以下命令控制的选项。
  • 命令。  

    Toggles visualization of collision segments for every entity.切换每个实体的碰撞段的可视化。

参数:
0 -
1 -
ig_debug_collision_volume
说明/描 述:
  • 变量。   打印一个值,该值指示是否启用了以下命令控制的选项。
  • 命令。  

    Toggles visualization of collision volumes for every entity.切换每个实体的碰撞体积的可视化。

参数:
0 -
1 -
ig_debug_entity_info
说明/描 述:
  • 变量。   打印一个值,该值指示是否启用了以下命令控制的选项。
  • 命令。  

    Toggles visualization of the basis for every CIGI and DIS entity with the ID, type, and type name specified (information is taken from the IG configuration file).切换具有指定ID,类型和类型名称的每个CIGI和DIS实体的基础的可视化(信息取自IG配置文件)。

参数:
0 -
1 -
ig_debug_switch_entity
说明/描 述:
Switches the current camera to another entity. This command can be used for DIS debugging as such functionality is not supported natively.将当前摄像机切换到另一个实体。该命令可用于DIS调试,因为本机不支持此功能。
ig_debug_visualizer_depth
说明/描 述:
  • 变量。   打印一个值,该值指示是否启用了以下命令控制的选项。
  • 命令。   Toggles depth testing for Debug visualizer elements (if elements should be obscured by the ones closer to the camera).切换“调试”可视化器元素的深度测试(如果元素应该被更靠近相机的元素遮盖)。
参数:
0 -
1 -
ig_debug_visualizer_depth_test
说明/描 述:
  • 变量。   打印当前值depth testing mode for Debug visualizer elements. This mode defines the way hidden (obscured by geometry) lines and points are drawn (can help understand their real position in screen captures).调试可视化器元素的深度测试模式。此模式定义隐藏线(由几何图形遮盖)和点的绘制方式(可帮助了解其在屏幕截图中的实际位置)。
  • 命令。   设置 depth testing mode for Debug visualizer elements. This mode defines the way hidden (obscured by geometry) lines and points are drawn (can help understand their real position in screen captures).调试可视化器元素的深度测试模式。此模式定义隐藏线(由几何图形遮盖)和点的绘制方式(可帮助了解其在屏幕截图中的实际位置)。
参数:
0 - 0 — depth testing is disabled (hidden lines are drawn as visible ones)
1 - 1 — hidden lines are not displayed at all
2 - 2 — hidden lines are drawn dashed/pattern (默认)
ig_debug_visualizer_duration
说明/描 述:
  • Command. Sets the visualization time period (in seconds).命令。设置可视化时间段(以秒为单位)。
参数:
10.0 — default
ig_debug_visualizer_scale
说明/描 述:
  • Command. Sets the scale used when rendering Debug visualizer elements.命令。设置呈现Debug可视化器元素时使用的比例。
参数:
1.0 — default
ig_debug_visualizer_screenspace
说明/描 述:
  • 变量。   打印当前值type of dimensions used when rendering Debug visualizer elements:呈现Debug可视化器元素时使用的尺寸类型:
  • 命令。   设置 type of dimensions used when rendering Debug visualizer elements:呈现Debug可视化器元素时使用的尺寸类型:
参数:
0 - false — use the world space dimensions (默认)
1 - true — use the screen space dimensions
ig_debug_visualizer_pixelsize
说明/描 述:
  • 变量。   打印当前值size of visualizer lines in pixels (screenspace mode only).可视化工具线的大小(以像素为单位)(仅屏幕空间模式)。
  • 命令。   设置 size of visualizer lines in pixels (screenspace mode only).可视化工具线的大小(以像素为单位)(仅屏幕空间模式)。
参数:
[0; inf] - 可用范围
3 - 默认
ig_debug_visualizer_worldsize
说明/描 述:
  • 变量。   打印当前值size of visualizer lines in meters (worldspace mode only).可视化工具线的大小(以米为单位)(仅适用于世界空间模式)。
  • 命令。   设置 size of visualizer lines in meters (worldspace mode only).可视化工具线的大小(以米为单位)(仅适用于世界空间模式)。
参数:
[0; inf] - 可用范围
0.5 - 默认
ig_state_save
说明/描 述:
Saves the current IG state to the specified file. The state can be used to simplify localization of problems occurring for specific settings or conditions (e.g. save a state and submit it to technical support engineer). 将当前IG状态保存到指定文件。该状态可用于简化针对特定设置或条件发生的问题的本地化(例如,保存状态并将其提交给技术支持工程师)。
参数:
Path to the file to save the IG state to.
ig_state_load
说明/描 述:
Loads IG state from the specified file and applies it. The state can be used to simplify localization of problems occurring for specific settings or conditions (e.g. save a state and submit it to technical support engineer). 从指定文件加载IG状态并应用它。该状态可用于简化针对特定设置或条件发生的问题的本地化(例如,保存状态并将其提交给技术支持工程师)。
参数:
Path to the file to load the IG state from.

A set of console commands controlling interpolation and extrapolation. These commands should be used on Master.一组控制内插和外插的控制台命令。这些命令应该在Master上使用。

ig_interpolation_enable
说明/描 述:
  • 变量。   打印一个值,该值指示是否启用了以下命令控制的选项。
  • 命令。   Toggles interpolation.切换插值。
参数:
0 -
1 -
ig_interpolation_period
说明/描 述:
  • Command. Sets the interpolation time period.命令。设置插值时间段。
参数:
0.2 — default
ig_extrapolation_period
说明/描 述:
  • Command. Sets the extrapolation time period.命令。设置外推时间段。
参数:
0.0 — default

Debug Options调试选项#

Free-Flying Camera自由飞行相机#

In the Debug mode, you can switch to the free-flying camera.在“调试”模式下,您可以切换到自由飞行的摄像机。

  • F — switching to a free-flying camera.F —切换到自由飞行的相机。
  • G — switching back to the entity camera.G —切换回实体相机。
最新更新: 2022-12-15
Build: ()