void Awake() { if (!SurfaceTracker.isAvailable()) { throw new Exception("surface tracker not support"); } tracker = SurfaceTracker.create(); }
public void CloseTracker() { if (tracker == null) { throw new Exception("surface tracker is null"); } tracker.close(); tracker.Dispose(); tracker = null; }
/// <summary> /// MonoBehaviour Awake /// </summary> protected virtual void Awake() { if (!EasyARController.Initialized) { return; } if (!SurfaceTracker.isAvailable()) { throw new UIPopupException(typeof(SurfaceTracker) + " not available"); } Tracker = SurfaceTracker.create(); }