consoletoui - eisclimber/ExPresS-XR GitHub Wiki

ConsoleToUI

Class in ExPresSXR.UI

Inherits from UnityEngine.MonoBehaviour

Summary

This component that can be added to a TMP_Text to display the console log inside the application. The first element of the Stack Trace will be logged too.

Please note that you can connect your device to your your computer and select it as "Connected Player" in the editor. Use this component instead if this is not possible.
A discussion and credits to bboysil on this topic: https://answers.unity.com/questions/125049/is-there-any-way-to-view-the-console-in-a-build.html

public class ConsoleToUI : MonoBehaviour

Enums

Name Description
LogTypeFilter Reflects UnityEngine.LogType but as flags.

Methods

Name Description
AppendTestEntryLong() Helper functions to log a long string via the Components context menu
AppendTestEntryShort() Helper functions to log a short string via the Components context menu
AppendToLog(string,string,LogType) Adds an entry to the logs displayed.
Will be automatically be called when something is logged to the console.

Properties

Name Description
CurrentLog The currently gathered log messages.
⚠️ **GitHub.com Fallback** ⚠️