Published On Apr 2, 2019
▶ Support me on patreon : / valemvr
▶ Join the Valem discord channel : / discord
Give life to your pictures with this quick Augmented Reality tutorial !
------------ Download Unity---------------
https://unity3d.com/get-unity/download
--------- Add The TrackableEvent Script-------------
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
public class TrackableEvent : DefaultTrackableEventHandler {
public UnityEvent onTrackingFound;
public UnityEvent onTrackingLost;
protected override void OnTrackingFound()
{
base.OnTrackingFound();
onTrackingFound.Invoke();
}
protected override void OnTrackingLost()
{
base.OnTrackingLost();
onTrackingLost.Invoke();
}
}