Living pictures in Augmented Reality (Unity AR Tutorial)
▶ Support me on patreon : https://www.patreon.com/ValemVR
▶ Join the Valem discord channel : https://discord.gg/5uhRegs
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();
}
}