I’m having a problem to create the text that says press any button and making it blink. i have create the background and the text but i can’t set its position. i’m doing it in C#. here is my code
using UnityEngine;
using System.Collections;
public class MainMenu : MonoBehaviour {
public GUITexture guiTexture;
private int GuiLabel = false;
Yeah, false isn’t an integer. It’s a bool (or boolean).
GUILayout exists specifically so you don’t have to tell it the position. Use GUI for exact positioning. First two arguments to the Rect are the X and Y position.
You’re starting GUILabelStart every OnGUI call, which is going to hurt. You need to call it only once, since it runs on its own forever.