There are lots of tips on disabling plane tracking, but I can’t seem to find anything that shows how to disable image tracking in ARKit? Essentially I have images I want to ‘scan’ rather than spawn objects on.
Using this link, I figured it out! I added the following to GenerateImageAnchor.cs
UnityARSessionNativeInterface m_session;
void Start ()
{
m_session = UnityARSessionNativeInterface.GetARSessionNativeInterface();
}
void AddImageAnchor(ARImageAnchor arImageAnchor)
{
//at the bottom of this function
StartCoroutine(RemoveAnchorCoroutine(arImageAnchor));
}
IEnumerator RemoveAnchorCoroutine(ARImageAnchor anchor)
{
yield return new WaitForSeconds(3.0f);
//doesn't have to be in a coroutine, but for my uses it is
m_session.RemoveUserAnchor(anchor.identifier);
}