static void SetConfigurationCallback(ArSession session, ArConfig config, IntPtr context)
            {
                var providerHandle = (GCHandle)context;

                if (providerHandle.Target is ARCoreProvider provider)
                {
                    provider.beforeSetConfiguration?.Invoke(new ARCoreBeforeSetConfigurationEventArgs(session, config));
                }
            }
Beispiel #2
0
 /// <summary>
 /// Constructs an <see cref="ARCoreBeforeSetConfigurationEventArgs"/>.
 /// </summary>
 /// <param name="session">The ARCore session whose corresponding configuration object will be set.</param>
 /// <param name="config">The ARCore session configuration which will be set.</param>
 public ARCoreBeforeSetConfigurationEventArgs(ArSession session, ArConfig config)
 {
     m_Session = session;
     m_Config  = config;
 }
Beispiel #3
0
 public ARCoreBeforeSetConfigurationEventArgs(IntPtr session, IntPtr config)
 {
     m_Session = ArSession.FromIntPtr(session);
     m_Config  = ArConfig.FromIntPtr(config);
 }