Engine API Reference - v2.22.0-beta.8
    Preparing search index...

    Class Tracing

    Log tracing functionality, allowing for tracing of the internal functionality of the engine. Note that the trace logging only takes place in the debug build of the engine and is stripped out in other builds.

    The debug build ships in the npm package: import from 'playcanvas/debug' instead of 'playcanvas' to enable trace channels, assertions and validation warnings. A 'playcanvas/profiler' build is also available for per-frame timings.

    Index
    stack: boolean = false

    Enable call stack logging for trace calls. Defaults to false.

    • Test if the trace channel is enabled.

      Parameters

      • channel: string

        Name of the trace channel.

      Returns boolean

      • True if the trace channel is enabled.