- Home /
Unity UI scal;e and Text Scripts changing Text in editor but not on mobile
yup. Everything works fine in the editor but the build on mobile, the Text dose not change. And on Mobile, the UI scaling is Wack. looks nothing like the editor, the editor it looks fine. and the text score changes in the editor to.
Why the Score dose not upadte on the mobile build but update and displays fine in the editor? who knows. try to do anything in unity and lol jokes dosn't work lol. Cant even make the simplest of games cause this software is so broken and doesn't work.
I'm amazed they get Pro's to use this when nothing in this software works and it crashes all the time.
I have tried Every setting. Every "Scaler" in the UI. Nothing works to make the Mobile Build Fit to the screen Like In the Editor.
(TextMeshPro Unity 2022)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class LevelGUI : MonoBehaviour
{
public TextMeshProUGUI ScoreTxT;
public GameObject Account;
public PlayerScoreScore PlayerScoreScoreCS;
// Start is called before the first frame update
void Start()
{
Account = GameObject.FindGameObjectWithTag("Account");
PlayerScoreScoreCS = Account.GetComponent<PlayerScoreScore>();
}
// Update is called once per frame
void Update()
{
ScoreTxT.text = PlayerScoreScoreCS.PlayerScore.ToString("n0");
}
}
capture.jpg
(90.8 kB)
Comment
Your answer
