protected virtual void OnLastHoverExited(HoverExitEventArgs args) { if (!m_Held) { m_MeshRenderer.material.color = Color.white; } }
private void EndPress(HoverExitEventArgs eventArgs) { hoverInteractor = null; hoverHeight = 0.0f; startHeight = 0.0f; ApplyHeight(yMax); }
private void OnHoverExited(HoverExitEventArgs arg0) { for (int i = 0; i < renderer.Count; i++) { renderer[i].material.color = startColors[i]; } }
public void EndPush(HoverExitEventArgs arg0) { pushInteractor = null; previousPushDepth = 0.0f; previouslyPushed = false; SetYPosition(minimalPushDepth); }
/// <inheritdoc /> protected override void OnHoverExiting(HoverExitEventArgs args) { base.OnHoverExiting(args); XRBaseInteractor interactor = args.interactor; OnHoverExiting(interactor); }
protected override void OnHoverExiting(HoverExitEventArgs args) { base.OnHoverExiting(args); // If the wrist didn't grab the object, we can no longer select if (!selectTarget) { canSelect = false; } }
/// <summary> /// <c>onLastHoverExited</c> /// /// pre: hook up this current event to a listener. /// /// post: event is attached to a listener, when the player stops pointing ray cast beam /// at a prop game object, then hide the description UI. /// /// </summary> /// <param name="args">HoverExitEventArgs, handeled by main class, what is being passed to the delegate function</param> protected virtual void onLastHoverExited(HoverExitEventArgs args) { prop.GetComponent <PopUpMenuHandler>().hideUI(); }
protected override void OnHoverExited(HoverExitEventArgs args) { realShowMesh = false; GetComponent <MeshRenderer>().enabled = false; base.OnHoverExited(args); }
private void HandleXRUntouched(HoverExitEventArgs arguments) { EmitUntouched(); }
protected override void OnHoverExited(HoverExitEventArgs args) { base.OnHoverExited(args); setColor(startColor); }
private void HoverExited(HoverExitEventArgs hoverExitEventArgs) { this.reticleImage.color = this.reticleDisabledColor; }