Ejemplo n.º 1
0
 /// <summary>  MetaBehavior Update. </summary>
 private void Update()
 {
     if (initlialzed && !_textureCreated)
     {
         currentNativeTexture.CreateTextureAndPassToPlugin((int)height, (int)width);
         InitOclussionManager();
         _textureCreated = true;
     }
     else if (!initlialzed)
     {
         if (HandKernelInterop.GetSensorMetaData(ref _sensorMetaData))
         {
             height      = (uint)_sensorMetaData.width;
             width       = (uint)_sensorMetaData.height;
             initlialzed = true;
         }
     }
 }
 private void Update()
 {
     if (!_sensorsInitialized)
     {
         Internal.SensorMetaData sensorMetaData = new Internal.SensorMetaData();
         if (HandKernelInterop.GetSensorMetaData(ref sensorMetaData))
         {
             OnSensorInitialized();
             _sensorsInitialized = true;
         }
     }
     else if (!_initializedHandsModule)
     {
         var context = Object.FindObjectOfType <MetaContextBridge>().CurrentContext;
         context.Get <HandsModule>().Initialized = true;
         _initializedHandsModule = true;
     }
 }