Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Displaying score on screen in specific place

$
0
0
I have this script that keeps count of the score when the player collects a collectible, when i try and display the score on screen i get the same 3 errors and cannot figure out how to display the score in a chosen location, using UnityEngine; using System.Collections; public class ScoreGlobal : MonoBehaviour { public int Score = 0; void OnGUI() { GUILayout.Label(Rect(10,10), "score"+Score); } } how can i display this on screen without errors? sorry if its unclear.

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>