protected override void OnEnable() { base.OnEnable(); controller.AliasPointerOn += new ControllerInteractionEventHandler(EnablePointerBeam); controller.AliasPointerOff += new ControllerInteractionEventHandler(DisablePointerBeam); controller.AliasPointerSet += new ControllerInteractionEventHandler(SetPointerDestination); controllerGrabScript = controller.GetComponent <VRTK_InteractGrab>(); var tmpMaterial = Resources.Load("WorldPointer") as Material; if (pointerMaterial != null) { tmpMaterial = pointerMaterial; } pointerMaterial = new Material(tmpMaterial); pointerMaterial.color = pointerMissColor; playAreaCursor = (GetComponent <VRTK_PlayAreaCursor>() ?? GetComponent <VRTK_PlayAreaCursor>()); if (interactWithObjects) { CreateObjectInteractor(); } }
protected override void OnEnable() { base.OnEnable(); pointerOriginTransform = (originalPointerOriginTransform == null ? VRTK_SDK_Bridge.GenerateControllerPointerOrigin(gameObject) : originalPointerOriginTransform); AttemptSetController(); CreatePointerOriginTransformFollow(); var tmpMaterial = Resources.Load("WorldPointer") as Material; if (pointerMaterial != null) { tmpMaterial = pointerMaterial; } pointerMaterial = new Material(tmpMaterial); pointerMaterial.color = pointerMissColor; playAreaCursor = GetComponent <VRTK_PlayAreaCursor>(); }
protected override void OnEnable() { base.OnEnable(); AttemptSetController(); var tmpMaterial = Resources.Load("WorldPointer") as Material; if (pointerMaterial != null) { tmpMaterial = pointerMaterial; } pointerMaterial = new Material(tmpMaterial); pointerMaterial.color = pointerMissColor; var fetchedPlayAreaCursor = GetComponent <VRTK_PlayAreaCursor>(); playAreaCursor = (fetchedPlayAreaCursor ?? fetchedPlayAreaCursor); if (interactWithObjects) { CreateObjectInteractor(); } }
public virtual void SetParent(VRTK_PlayAreaCursor setParent) { parent = setParent; }
protected override void OnEnable() { base.OnEnable(); controller.AliasPointerOn += new ControllerInteractionEventHandler(EnablePointerBeam); controller.AliasPointerOff += new ControllerInteractionEventHandler(DisablePointerBeam); controller.AliasPointerSet += new ControllerInteractionEventHandler(SetPointerDestination); var tmpMaterial = Resources.Load("WorldPointer") as Material; if (pointerMaterial != null) { tmpMaterial = pointerMaterial; } pointerMaterial = new Material(tmpMaterial); pointerMaterial.color = pointerMissColor; playAreaCursor = (GetComponent<VRTK_PlayAreaCursor>() ?? GetComponent<VRTK_PlayAreaCursor>()); if (interactWithObjects) { CreateObjectInteractor(); } }
} // 0x0000000180246D40-0x0000000180246D50 public virtual void u0928u091Eu091Cu0923u0925u0922u091Au0922u0923u0925u091F(VRTK_PlayAreaCursor u0921u0924u0924u091Au0927u091Du0920u0927u0925u0926u0928) { } // 0x0000000180246D40-0x0000000180246D50
} // 0x0000000180249080-0x0000000180249090 public virtual void SetParent(VRTK_PlayAreaCursor u0921u0924u0924u091Au0927u091Du0920u0927u0925u0926u0928) { } // 0x0000000180246D40-0x0000000180246D50
public void SetParent(GameObject setParent) { parent = setParent.GetComponent<VRTK_PlayAreaCursor>(); }
public void SetParent(GameObject setParent) { parent = setParent.GetComponent <VRTK_PlayAreaCursor>(); }