added code from unity
This commit is contained in:
16
Runtime/UI/LogEntryView.cs
Normal file
16
Runtime/UI/LogEntryView.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Jovian.InGameLogging.UI {
|
||||
public class LogEntryView : MonoBehaviour {
|
||||
[SerializeField] TMP_Text messageText;
|
||||
|
||||
public void SetEntry(in LogEntry entry) {
|
||||
messageText.text = entry.message;
|
||||
}
|
||||
|
||||
public void ClearEntry() {
|
||||
messageText.text = string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user