Ok so once you scan it, it will appear and then you want it to disappear on a defined function?
From the image target, remove the Default trackable event handler script and attach this script.
Default trackable event handler script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Tracker : DefaultTrackableEventHandler
{
override protected void Start()
{
base.Start();
}
override protected void OnTrackingFound()
{
//Turn on the mesh renderer
}
protected override void OnTrackingLost()
{
//turn off the mesh renderer
}
}