The debug namespace gives access to debug & diagnostics helper functions.
debug.info(bool condition) If condition is true at graph compile-time, will cause the editor to emit a build info message. Removed in shipping builds.
debug.warning(bool condition) If condition is true at graph compile-time, will cause the editor to emit a build warning message. Removed in shipping builds.
debug.error(bool condition) If condition is true at graph compile-time, will cause the editor to emit a build error message. Removed in shipping builds.
debug.assert(bool condition) If condition is true at graph compile-time, will cause the editor to emit a build error message. If condition is false at runtime, will cause the editor to pause the simulation and select the particle for inspection / debugging. Removed in shipping builds.
These can be useful to emit diagnostics inside templates. Each have a node equivalent. A couple of core-library templates use these to emit warnings when incorrect combinations of properties are used (for example, the event multiplier node)
alignMode.left: Left alignment
alignMode.center: Center alignment
alignMode.right: Right alignment
debug.drawValue(bool enabled, float# value, float3 position[, float fontScale, float4 color, float2 offset, u32 alignMode]) If enabled is true at graph compile-time, draws value at position (world space position), offsetted by offset world space units along the camera side/up axis.
debug.drawLine(bool enabled, float3 start, float3 end[, float4 colorStart, float4 colorEnd]) If enabled is true at graph compile-time, draws a line between start and end(world space positions).
Privacy & Cookies Policy
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
The _ga cookie, installed by Google Analytics, calculates visitor, session and campaign data and also keeps track of site usage for the site's analytics report. The cookie stores information anonymously and assigns a randomly generated number to recognize unique visitors.
Set by Google to distinguish users.
Installed by Google Analytics, _gid cookie stores information on how visitors use a website, while also creating an analytics report of the website's performance. Some of the data that are collected include the number of visitors, their source, and the pages they visit anonymously.
YouTube sets this cookie via embedded youtube-videos and registers anonymous statistical data.