hi
I’m new to coding and I have some code I’m wanting to use, I know its wrong for now but what I’m wanting from it is for some text to be hidden on game start but to be revealed if another piece of text is hovered over by the mouse.
note: I want the text that is revealed to be able to be clicked by the user as a button
here’s my useless code
using UnityEngine;
using System.Collections;
public class mouseover : MonoBehaviour {
// Use this for initialization
void Start () {
!renderer.enabled;
}
}
// Update is called once per frame
function Update () {
if(OnMouseOver)
renderer.enabled;
if(OnMouseOver.false)
!renderer.enabled;
}
}