Show / Hide Table of Contents

    i5 Debug

    Use Case

    The i5Debug class provides pre-formatted log commands. They provide more information about the origin of the log message by writing the class name in front of the log message. If the class is a MonoBehaviour, it will also highlight the associated GameObject in the hierarchy if the log message is clicked in the console.

    Usage

    Log messages can be created in a similar way to the standard debug logs in Unity:

    Unity Debug Log i5 Debug Log
    Debug.Log("text") i5Debug.Log("text", this)
    Debug.LogWarning("text") i5Debug.LogWarning("text", this)
    Debug.LogError("text") i5Debug.LogError("text", this)

    Functionality

    The i5Debug is a formatter which takes additional information as input and formats them into a log output. The output is logged using Unity's standard Debug class. This also means that it can be used in combination with standard Debug.Log outputs.

    • Improve this Doc
    Back to top i5 Toolkit Documentation