I’m making an FPS, how do i make my currentAmmo int print in a text, the same way javascript goes console.log(currentAmmo + " / 30")
if you want it on UI, you need to make a UIText component on a canvas. Redirect to... title of new-page
Redirect to... title of new-page
using UnityEngine.UI;
public Text display;
int someValue;
void Update()
{
display.text = someValue.ToString();
}
if youre not talking about ui… Debug.Log(currentAmmo + "/30");