Fix player name UI and persist name between menu scenes

This commit is contained in:
gravitrax-bublina
2026-05-17 12:34:22 +02:00
parent 207f997254
commit 54bfcf745b
5 changed files with 51 additions and 12 deletions

View File

@@ -31,7 +31,7 @@ public class PlayerNameInput : MonoBehaviour
// Keep / ensure background Image
var img = nameGO.GetComponent<Image>();
if (img == null) img = nameGO.AddComponent<Image>();
img.color = new Color(0.08f, 0.10f, 0.20f, 0.92f);
img.color = Color.white;
// Build viewport > (Placeholder + Text) child hierarchy required by TMP_InputField
var viewportRT = MakeChild("Text Area", rt);