How do i get a UI image to toggle On when i enter a trigger?

Im new to scripting and i want to create a gem pickup with a UI image that turns on when you enter the trigger then destroy the object! This is what i got so far, what should i do to make it work as i described?


using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GemTest : MonoBehaviour

public GameObject Test;

private void OnTriggerEnter(Collider other)
    if (other.tag == "Player")



All soultions to your pronblem here :smiley:

(Well of course not all, but will open you a door you need to cross if pretend to make a game!)