/*=============================================================================== Copyright (C) 2022 Immersal - Part of Hexagon. All Rights Reserved. This file is part of the Immersal SDK. The Immersal SDK cannot be copied, distributed, or made available to third-parties for commercial purposes without written permission of Immersal Ltd. Contact sdk@immersal.com for licensing requests. ===============================================================================*/ using System; using System.Runtime.InteropServices; using System.Collections; using System.Collections.Generic; using System.IO; using System.Net.Http; using System.Threading.Tasks; using UnityEngine; using UnityEngine.Networking; using UnityEngine.UI; using Immersal.AR; using Immersal.REST; using Immersal.Samples.Util; using UnityEngine.XR.ARFoundation; using UnityEngine.XR.ARSubsystems; namespace Immersal.Samples.Mapping { public class Mapper : MapperBase { private void SessionStateChanged(ARSessionStateChangedEventArgs args) { ImageRunUpdate(); m_IsTracking = args.state == ARSessionState.SessionTracking; var captureButton = workspaceManager.captureButton.GetComponent