Copie depuis Unity VCS vers GitHub
This commit is contained in:
17
Assets/Scripts/MiseAJourDebug.cs
Normal file
17
Assets/Scripts/MiseAJourDebug.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using UnityEngine;
|
||||
using TMPro;
|
||||
|
||||
public class MiseAJourDebug : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private TextMeshProUGUI Debug_text;
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
Application.logMessageReceived += GererLog;
|
||||
}
|
||||
|
||||
void GererLog(string logString, string stackTrace, LogType type)
|
||||
{
|
||||
Debug_text.text = $"{type}: {logString} at {stackTrace}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user