public Provider(ARCoreSessionSubsystem subsystem)
            {
                m_Subsystem = subsystem;

                NativeApi.UnityARCore_session_construct(CameraPermissionRequestProvider);
                if (SystemInfo.graphicsMultiThreaded)
                {
                    m_RenderEventFunc = NativeApi.UnityARCore_session_getRenderEventFunc();
                }
            }
Exemplo n.º 2
0
            public ARCoreProvider(ARCoreSessionSubsystem subsystem)
            {
                m_Subsystem = subsystem;

                NativeApi.UnityARCore_session_construct(CameraPermissionRequestProvider);
                if (SystemInfo.graphicsMultiThreaded)
                {
                    m_RenderEventFunc = NativeApi.UnityARCore_session_getRenderEventFunc();
                }

                m_SubsystemHandle = GCHandle.Alloc(subsystem);
                NativeApi.UnityARCore_session_setConfigCallback(s_SetConfigurationCallback, GCHandle.ToIntPtr(m_SubsystemHandle));
            }
Exemplo n.º 3
0
            public ARCoreProvider(ARCoreSessionSubsystem subsystem)
#endif
            {
#if !UNITY_2020_2_OR_NEWER
                m_Subsystem = subsystem;
#endif

                NativeApi.UnityARCore_session_construct(CameraPermissionRequestProvider);
                if (SystemInfo.graphicsMultiThreaded)
                {
                    m_RenderEventFunc = NativeApi.UnityARCore_session_getRenderEventFunc();
                }

                m_ProviderHandle = GCHandle.Alloc(this);
                NativeApi.UnityARCore_session_setConfigCallback(m_SetConfigurationCallback, GCHandle.ToIntPtr(m_ProviderHandle));
            }