Видеоуроки
Interface
Essentials
Advanced
Полезные советы
Программирование на C#
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Настройки и предпочтения
Работа с проектами
Настройка параметров узла
Setting Up Materials
Setting Up Properties
Освещение
Landscape Tool
Sandworm (Experimental)
Использование инструментов редактора для конкретных задач
Extending Editor Functionality
Встроенные объекты
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Objects
Sound Objects
Pathfinding Objects
Players
Программирование
Основы
Настройка среды разработки
Примеры использования
UnigineScript
C++
C#
Унифицированный язык шейдеров UUSL
File Formats
Rebuilding the Engine Tools
GUI
Двойная точность координат
API
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
Работа с контентом
Оптимизация контента
Материалы
Art Samples
Tutorials

Debugging IG Application

Warning
The functionality described in this article is not available in the Community SDK edition.
You should upgrade to Sim SDK edition to use it.

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.

Path Tracing mode enabled

To enable the Debug mode, open the built-in console (use the grave accent (`) key, placed under the ESC key) and type ig_debug 1.

Console Commands#

Visualization of debugging information.

ig_debug
Description:
  • Variable. Prints a value indicating if the option controlled by the command below is enabled.
  • Command. Toggles the debug mode.
Arguments:
0 - disabled
1 - enabled
ig_debug_requests
Description:
  • Variable. Prints a value indicating if the option controlled by the command below is enabled.
  • Command. Toggles visualization of where LOS/HAT/HOT requests are sent to.

Arguments:
0 - disabled
1 - enabled
ig_debug_pathtrace
Description:
  • Variable. Prints a value indicating if the option controlled by the command below is enabled.
  • Command. 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.

Arguments:
0 - disabled
1 - enabled
ig_debug_collision_segment
Description:
  • Variable. Prints a value indicating if the option controlled by the command below is enabled.
  • Command. Toggles visualization of collision segments for every entity.

Arguments:
0 - disabled
1 - enabled
ig_debug_collision_volume
Description:
  • Variable. Prints a value indicating if the option controlled by the command below is enabled.
  • Command. Toggles visualization of collision volumes for every entity.

Arguments:
0 - disabled
1 - enabled
ig_debug_entity_info
Description:
  • Variable. Prints a value indicating if the option controlled by the command below is enabled.
  • Command. 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).

Arguments:
0 - disabled
1 - enabled
ig_debug_visualizer_depth
Description:
  • Variable. Prints a value indicating if the option controlled by the command below is enabled.
  • Command. Toggles depth testing for Debug visualizer elements (if elements should be obscured by the ones closer to the camera).
Arguments:
0 - disabled
1 - enabled
ig_debug_visualizer_duration
Description:
  • Command. Sets the visualization time period.
Arguments:
10.0 — default
ig_debug_visualizer_scale
Description:
  • Command. Sets the scale used when rendering Debug visualizer elements.
Arguments:
1.0 — default
ig_debug_visualizer_screenspace
Description:
  • Variable. Prints the current type of dimensions used when rendering Debug visualizer elements:
  • Command. Sets the type of dimensions used when rendering Debug visualizer elements:
Arguments:
false - use the world space dimensions (by default)
true - use the screen space dimensions

A set of console commands controlling interpolation and extrapolation.

ig_interpolation_enable
Description:
  • Variable. Prints a value indicating if the option controlled by the command below is enabled.
  • Command. Toggles interpolation.
Arguments:
0 - disabled
1 - enabled
ig_interpolation_period
Description:
  • Command. Sets the interpolation time period.
Arguments:
0.2 — default
ig_extrapolation_period
Description:
  • Command. Sets the extrapolation time period.
Arguments:
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.
  • G — switching back to the entity camera.
Last update: 17.02.2021