コード例 #1
0
 protected virtual void HandleEnabledPointer()
 {
     if (EnabledPointerRenderer())
     {
         pointerRenderer.InitalizePointer(this, invalidListPolicy, navMeshCheckDistance, headsetPositionCompensation);
         pointerRenderer.UpdateRenderer();
         if (!IsPointerActive())
         {
             bool currentPointerVisibility = pointerRenderer.IsVisible();
             pointerRenderer.ToggleInteraction(currentPointerVisibility);
         }
         CheckHoverSelect();
     }
 }
コード例 #2
0
 protected virtual void HandleEnabledPointer()
 {
     if (EnabledPointerRenderer())
     {
         pointerRenderer.InitalizePointer(this, targetListPolicy, navmeshData, headsetPositionCompensation);
         pointerRenderer.UpdateRenderer();
         if (!IsPointerActive())
         {
             bool currentPointerVisibility = pointerRenderer.IsVisible();
             pointerRenderer.ToggleInteraction(currentPointerVisibility);
         }
         CheckHoverSelect();
     }
     else
     {
         Toggle(false);
         currentActivationState = 0;
     }
 }