hi …
i need to show the time on screen game
I already have this
print(Time.realtimeSinceStartup)
But the time appear down left on editor
and i need to show on screen on a GUItext.
Some body have an idea please
Or some script
please help
thanks
hi …
i need to show the time on screen game
I already have this
print(Time.realtimeSinceStartup)
But the time appear down left on editor
and i need to show on screen on a GUItext.
Some body have an idea please
Or some script
please help
thanks
If you want to show something inside your game you will need to use the unity GUI system. (Or any of the GUI systems available in the asset store)
For text this would be(inside a script)
C#
void OnGUI()
{
GUILayout.Label(Application.realTimeSinceStartup.ToString());
}
For UnityScript something like this
function OnGUI()
{
GUILayout.Label(Application.realTimeSinceStartup);
}
Look into the GUI part of the manual if you need to learn more functions ![]()