Ejemplo n.º 1
0
 protected void StartArSession(Texture2D texture)
 {
     if (_sessionStarted)
     {
         return;
     }
     if (texture != null)
     {
         var config = sessionConfiguration;
         if (config.IsSupported)
         {
             byte[] bytes = texture.EncodeToJPG();
             m_session.RunWithConfigAndImage(config, bytes.Length, bytes, 0.25f);
             UnityARSessionNativeInterface.ARFrameUpdatedEvent += FirstFrameUpdate;
         }
     }
 }