1234567891011121314151617181920 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class LogManager : MonoBehaviour
- {
- public Text t;
- private void Start()
- {
- Application.logMessageReceived += HandleLog;
- }
- public void HandleLog(string logString, string stackTrace, LogType type)
- {
- t.text += "\n" + logString;
-
-
- }
- }
|