protected virtual void OnLastHoverExited(HoverExitEventArgs args)
 {
     if (!m_Held)
     {
         m_MeshRenderer.material.color = Color.white;
     }
 }
Exemplo n.º 2
0
 private void EndPress(HoverExitEventArgs eventArgs)
 {
     hoverInteractor = null;
     hoverHeight     = 0.0f;
     startHeight     = 0.0f;
     ApplyHeight(yMax);
 }
Exemplo n.º 3
0
 private void OnHoverExited(HoverExitEventArgs arg0)
 {
     for (int i = 0; i < renderer.Count; i++)
     {
         renderer[i].material.color = startColors[i];
     }
 }
Exemplo n.º 4
0
    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);
    }
Exemplo n.º 6
0
    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;
        }
    }
Exemplo n.º 7
0
 /// <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();
 }
Exemplo n.º 8
0
 protected override void OnHoverExited(HoverExitEventArgs args)
 {
     realShowMesh = false;
     GetComponent <MeshRenderer>().enabled = false;
     base.OnHoverExited(args);
 }
Exemplo n.º 9
0
 private void HandleXRUntouched(HoverExitEventArgs arguments)
 {
     EmitUntouched();
 }
Exemplo n.º 10
0
 protected override void OnHoverExited(HoverExitEventArgs args)
 {
     base.OnHoverExited(args);
     setColor(startColor);
 }
Exemplo n.º 11
0
 private void HoverExited(HoverExitEventArgs hoverExitEventArgs)
 {
     this.reticleImage.color = this.reticleDisabledColor;
 }