I have set the transform positions to 0, put the text in a default layer, in the hierarchy it is not a child of the canvas. I added a script which shows a highscore, but it wont show in the game or scene view! Very annoying, I feel like I have tried everything. I see that in the text field in the inspector of the game object which has the gui text component attached, the text changes to what I want. However, it wont show in the game or scene view. i want the text to be in the center middle, with text alignment to be center as well.
Heres the script im using:
using UnityEngine;
using System.Collections;
public class ShowScore : MonoBehaviour {
static int highScore = 0;
void Start () {
PlayerPrefs.GetInt("highScore",highScore);
highScore = PlayerPrefs.GetInt ("highScore", highScore);
guiText.text = "HS:" + highScore;
}
}