Exemplo n.º 1
0
 public void StartAR(InsightARSettings settings)
 {
     checkARSupport(settings);
     mCurrentSetting   = settings;
     mARCameraConfiged = false;
     registerInsightAR(settings);
     startInsightAR(settings);
 }
Exemplo n.º 2
0
 private void startInsightAR(InsightARSettings settings)
 {
                 #if UNITY_ANDROID || UNITY_IOS
     listAnchorsToUpdate = new List <InsightARPlaneAnchor>();
     listAnchorsToAdd    = new List <InsightARPlaneAnchor>();
     listAnchorsToRemove = new List <InsightARPlaneAnchor>();
     InsightARNative.iarInit(settings.configPath, onFrameUpdate, onAnchorAdded, onAnchorUpdated, onAnchorRemoved, onFaceUpdate, IntPtr.Zero);
                 #endif
 }
Exemplo n.º 3
0
 private void checkARSupport(InsightARSettings settings)
 {
                 #if UNITY_ANDROID || UNITY_IOS
     //check InsightAR support
     if (!InsightARNative.iarSupport())
     {
     }
                 #endif
 }
Exemplo n.º 4
0
 private void registerInsightAR(InsightARSettings settings)
 {
                 #if UNITY_ANDROID || UNITY_IOS
     InsightARNative.iarRegisterAppKey(settings.appKey, settings.appSecret);
                 #endif
 }