|
|
|
|
|
|
using UnityEngine.XR.ARSubsystems; |
|
|
|
using UnityEngine.XR.ARFoundation; |
|
|
|
|
|
|
|
#if UNITY_IOS && !UNITY_EDITOR
|
|
|
|
using UnityEngine.XR.ARKit; |
|
|
|
#endif
|
|
|
|
|
|
|
|
#if UNITY_EDITOR
|
|
|
|
using UnityEditor; |
|
|
|
using UnityEditor.Build; |
|
|
|
|
|
|
|
|
|
|
foreach (var trackedImage in eventArgs.updated) |
|
|
|
UpdateInfo(trackedImage); |
|
|
|
} |
|
|
|
|
|
|
|
void Update() |
|
|
|
{ |
|
|
|
#if UNITY_IOS && !UNITY_EDITOR
|
|
|
|
var subsystem = m_TrackedImageManager.subsystem as ARKitImageTrackingSubsystem; |
|
|
|
if (subsystem != null) |
|
|
|
{ |
|
|
|
subsystem.maximumNumberOfTrackedImages = m_TrackedImageManager.referenceLibrary.count; |
|
|
|
} |
|
|
|
#endif
|
|
|
|
} |
|
|
|
} |