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