Question by 
               CraftyMaelyss · Jun 12, 2020 at 04:01 PM · 
                unity 5uitextcontroller  
              
 
              How to make text appear when button is highlighted with a controller?
As the title says, I am trying to make text appear when a button is highlighted using the controller. I have been researching this all night and every method I have found and tried has 0 effect, due to using the controller.
This is my code currently:
 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 using UnityEngine.UI;
 using UnityEngine.EventSystems;
 
 public class ButtonDescription : MonoBehaviour
 {
 
     public GameObject Description;
     
 
     // Start is called before the first frame update
     void Start()
     {
         Description.SetActive(false);
     }
 
     // Update is called once per frame
     void Update()
     {
         
     }
 
     public void IPointerEnterHandler(PointerEventData eventData)
     {
         Description.SetActive(true);
         Debug.Log("Button description visible.");
     }
 
     public void IPointerExitHandler()
     {
         Description.SetActive(false);
         Debug.Log("Button description invisible.");
     }
 
 }
 
               Any ideas on how to fix this issue?
               Comment
              
 
               
              Your answer