Esempio n. 1
0
        protected virtual VRTK_BasePointerRenderer GeneratePointerRenderer()
        {
            VRTK_BasePointerRenderer returnRenderer = GetComponentInChildren <VRTK_BasePointerRenderer>();

            if (returnRenderer == null)
            {
                returnRenderer         = gameObject.AddComponent <VRTK_StraightPointerRenderer>();
                autogenPointerRenderer = (VRTK_StraightPointerRenderer)returnRenderer;
            }
            return(returnRenderer);
        }
Esempio n. 2
0
 protected virtual void SetupRenderer()
 {
     if (pointerRenderer == null)
     {
         pointerRenderer = GeneratePointerRenderer();
     }
     if (EnabledPointerRenderer())
     {
         pointerRenderer.InitalizePointer(this, targetListPolicy, navmeshData, headsetPositionCompensation);
     }
 }
Esempio n. 3
0
 // Token: 0x06001132 RID: 4402 RVA: 0x00064B70 File Offset: 0x00062D70
 protected virtual void ToggleDirectionIndicator(VRTK_BasePointerRenderer pointerRenderer, bool state)
 {
     if (pointerRenderer.directionIndicator != null && this.hideDirectionIndicatorOnHover)
     {
         if (!state)
         {
             this.storedDirectionIndicatorState          = pointerRenderer.directionIndicator.isActive;
             pointerRenderer.directionIndicator.isActive = false;
             return;
         }
         pointerRenderer.directionIndicator.isActive = this.storedDirectionIndicatorState;
     }
 }
Esempio n. 4
0
 // Token: 0x06001131 RID: 4401 RVA: 0x00064B40 File Offset: 0x00062D40
 protected virtual void TogglePointerCursor(VRTK_BasePointerRenderer pointerRenderer, bool state)
 {
     if (this.hidePointerCursorOnHover)
     {
         if (!state)
         {
             this.storedCursorState           = pointerRenderer.cursorVisibility;
             pointerRenderer.cursorVisibility = VRTK_BasePointerRenderer.VisibilityStates.AlwaysOff;
             return;
         }
         pointerRenderer.cursorVisibility = this.storedCursorState;
     }
 }
 protected virtual void TogglePointerCursor(VRTK_BasePointerRenderer pointerRenderer, bool state)
 {
     if (hidePointerCursorOnHover)
     {
         if (!state)
         {
             storedCursorState = pointerRenderer.cursorVisibility;
             pointerRenderer.cursorVisibility = VRTK_BasePointerRenderer.VisibilityStates.AlwaysOff;
         }
         else
         {
             pointerRenderer.cursorVisibility = storedCursorState;
         }
     }
 }
Esempio n. 6
0
        }                                                                                        // 0x0000000181597F60-0x0000000181597F80

        protected virtual void u091Bu0923u0920u091Du091Eu0926u0920u091Fu0927u091Cu0928(VRTK_BasePointerRenderer u0922u091Eu0923u0927u0925u091Eu0924u0923u0921u091Du091A, bool u091Cu091Du0928u0928u0924u0927u091Fu0922u0927u091Fu0925)
        {
        }                                                                                                                                                                                                                                         // 0x0000000181598C80-0x0000000181598CC0
Esempio n. 7
0
        }                                                                                           // 0x000000018159AA10-0x000000018159AB00

        protected virtual void u0921u0921u0923u091Du091Cu091Cu091Du0923u091Du0922u0927(VRTK_BasePointerRenderer u0922u091Eu0923u0927u0925u091Eu0924u0923u0921u091Du091A, bool u091Cu091Du0928u0928u0924u0927u091Fu0922u0927u091Fu0925)
        {
        }                                                                                                                                                                                                                                         // 0x000000018159AE00-0x000000018159AE40
Esempio n. 8
0
        }                                                                                                                                                                                                                                                                          // 0x0000000181599830-0x0000000181599AD0

        protected virtual void u0929u0922u0921u091Eu091Fu0920u091Au0927u0925u0924u091D(VRTK_BasePointerRenderer u0922u091Eu0923u0927u0925u091Eu0924u0923u0921u091Du091A, bool u091Cu091Du0928u0928u0924u0927u091Fu0922u0927u091Fu0925)
        {
        }                                                                                                                                                                                                                                         // 0x000000018159DFB0-0x000000018159E090