Ejemplo n.º 1
0
    public static LogEntry LogOnScreen(string text)
    {
        var res = new LogEntry(text);

        LogDrawer.Log(res);
        return(res);
    }
Ejemplo n.º 2
0
    /// <summary>
    /// Draws text directly on the screen.
    /// Returns the <see cref="DebugPlusNS.LogEntry"/> to change drawing color and duration.
    /// </summary>
    /// <param name="text"></param>
    /// <returns>The fluent object to add parameters.</returns>
    public static LogEntry LogOnScreen(string text)
    {
        var res = new LogEntry(text);

#if UNITY_EDITOR
        LogDrawer.Log(res);
#endif
        return(res);
    }
Ejemplo n.º 3
0
    /// <summary>
    /// Draws text directly on the screen.
    /// Returns the <see cref="DebugPlusNS.LogEntry"/> to change drawing color and duration.
    /// </summary>
    /// <param name="text"></param>
    /// <returns>The fluent object to add parameters.</returns>
    public static LogEntry LogOnScreen(string text)
    {
        var res = new LogEntry(text);

#if UNITY_EDITOR
        LogDrawer.Log(res);
#else
        if (DebugPlusManager.I.enableInBuild)
        {
            LogDrawer.Log(res);
        }
#endif
        return(res);
    }