Closed Maapel closed 3 years ago
I'm not sure what you are asking. Are you looking for the ARSession.stateChanged event?
Thank you so much for helping. It worked . If anyone wants how to do it here is an example this worked.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.ARFoundation;
public class ARInteraction : MonoBehaviour
{
void onChange(ARSessionStateChangedEventArgs eventArgs)
{
//Debug.Log(eventArgs.state);
}
void Start()
{
ARSession.stateChanged+= onChange;
}
void Update()
{
}
}
How can i implement systemStateChanged for AR subSystemManager in ARFoundation scripting. Thank You for the Help