I’m making a clicker game for android (just cause) and using the new UI text I’m displaying the price for one of the upgrades, I went to test it on my phone, but it shows up as “3E+07.” Is there any way to make it so it is just a regular number? This is the script for the text:
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class MegaMprice : MonoBehaviour {
Text txt;
void Start () {
txt = gameObject.GetComponent<Text>();
txt.text = Shop.MegaMPrice.ToString();
}
// Update is called once per frame
void Update () {
txt.text= Shop.MegaMPrice.ToString();
}
}
Here is a screenshot from my phone of it