• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# VRTK.ControllerInteractionEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中VRTK.ControllerInteractionEventArgs的典型用法代码示例。如果您正苦于以下问题:C# ControllerInteractionEventArgs类的具体用法?C# ControllerInteractionEventArgs怎么用?C# ControllerInteractionEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ControllerInteractionEventArgs类属于VRTK命名空间,在下文中一共展示了ControllerInteractionEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: DisablePointerBeam

 protected override void DisablePointerBeam(object sender, ControllerInteractionEventArgs e)
 {
     base.PointerSet();
     base.DisablePointerBeam(sender, e);
     TogglePointerCursor(false);
     curvedBeam.TogglePoints(false);
 }
开发者ID:clydeshaffer,项目名称:SteamVR_Unity_Toolkit,代码行数:7,代码来源:VRTK_BezierPointer.cs


示例2: DoTouchpadPressed

 void DoTouchpadPressed(object sender, ControllerInteractionEventArgs e)
 {
     for (int i = 0; i < 20; i++)
     {
         Instantiate(spawnMe, position, Quaternion.identity);
     }
 }
开发者ID:CreateAppAdmin,项目名称:SteamVR_Unity_Toolkit,代码行数:7,代码来源:Sphere_Spawner.cs


示例3: DoStopUseObject

 private void DoStopUseObject(object sender, ControllerInteractionEventArgs e)
 {
     if (IsObjectHoldOnUse(usingObject) || GetObjectUsingState(usingObject) >= 2)
     {
         SetObjectUsingState(usingObject, 0);
         UnuseInteractedObject();
     }
 }
开发者ID:CreateAppAdmin,项目名称:SteamVR_Unity_Toolkit,代码行数:8,代码来源:VRTK_InteractUse.cs


示例4: DoMenuOn

 void DoMenuOn(object sender, ControllerInteractionEventArgs e)
 {
     if (!menuInit)
     {
         InitMenu();
     }
     clonedMenuObject.SetActive(true);
     menuActive = true;
 }
开发者ID:Firgof,项目名称:HarrowingHeights,代码行数:9,代码来源:Controller_Menu.cs


示例5: DoTriggerReleased

 private void DoTriggerReleased(object sender, ControllerInteractionEventArgs e)
 {
     tooltips.ShowTips(false, VRTK_ControllerTooltips.TooltipButtons.TriggerTooltip);
     actions.ToggleHighlightTrigger(false);
     if (!events.AnyButtonPressed())
     {
         actions.SetControllerOpacity(1f);
     }
 }
开发者ID:xiaopanCode,项目名称:SteamVR_Unity_Toolkit,代码行数:9,代码来源:VRTK_ControllerAppearance_Example.cs


示例6: DoTouchpadReleased

 private void DoTouchpadReleased(object sender, ControllerInteractionEventArgs e)
 {
     if (roomExtender.additionalMovementEnabledOnButtonPress)
     {
         DisableAdditionalMovement();
     }
     else
     {
         EnableAdditionalMovement();
     }
 }
开发者ID:xiaopanCode,项目名称:SteamVR_Unity_Toolkit,代码行数:11,代码来源:VRTK_RoomExtender_ControllerExample.cs


示例7: DoStartUseObject

 private void DoStartUseObject(object sender, ControllerInteractionEventArgs e)
 {
     GameObject touchedObject = interactTouch.GetTouchedObject();
     if (touchedObject != null && interactTouch.IsObjectInteractable(touchedObject))
     {
         UseInteractedObject(touchedObject);
         if (!IsObjectHoldOnUse(usingObject))
         {
             SetObjectUsingState(usingObject, GetObjectUsingState(usingObject) + 1);
         }
     }
 }
开发者ID:CreateAppAdmin,项目名称:SteamVR_Unity_Toolkit,代码行数:12,代码来源:VRTK_InteractUse.cs


示例8: DoTouchpadPressed

 private void DoTouchpadPressed(object sender, ControllerInteractionEventArgs e)
 {
     roomExtender.additionalMovementMultiplier = e.touchpadAxis.magnitude * 5 > 1 ? e.touchpadAxis.magnitude * 5 : 1;
     if (roomExtender.additionalMovementEnabledOnButtonPress)
     {
         EnableAdditionalMovement();
     }
     else
     {
         DisableAdditionalMovement();
     }
 }
开发者ID:xiaopanCode,项目名称:SteamVR_Unity_Toolkit,代码行数:12,代码来源:VRTK_RoomExtender_ControllerExample.cs


示例9: DoTouchpadAxisChanged

        //Touchpad finger moved position
        private void DoTouchpadAxisChanged(object sender, ControllerInteractionEventArgs e)
        {
            //Convert Touchpad Vector2 to Angle (0 to 360)
            float angle = Mathf.Atan2(e.touchpadAxis.y, e.touchpadAxis.x) * Mathf.Rad2Deg;
            angle = 90.0f - angle;
            if (angle < 0)
            {
                angle += 360.0f;
            }
            currentAngle = 360 - angle;

            menu.HoverButton(currentAngle);
        }
开发者ID:xiaopanCode,项目名称:SteamVR_Unity_Toolkit,代码行数:14,代码来源:RadialMenuController.cs


示例10: DoApplicationMenuPressed

 private void DoApplicationMenuPressed(object sender, ControllerInteractionEventArgs e)
 {
     switch (roomExtender.movementFunction)
     {
         case VRTK_RoomExtender.MovementFunction.Nonlinear:
             roomExtender.movementFunction = VRTK_RoomExtender.MovementFunction.LinearDirect;
             break;
         case VRTK_RoomExtender.MovementFunction.LinearDirect:
             roomExtender.movementFunction = VRTK_RoomExtender.MovementFunction.Nonlinear;
             break;
         default:
             break;
     }
 }
开发者ID:xiaopanCode,项目名称:SteamVR_Unity_Toolkit,代码行数:14,代码来源:VRTK_RoomExtender_ControllerExample.cs


示例11: DoUseOn

 private void DoUseOn(object sender, ControllerInteractionEventArgs e)
 {
     targetPointerRotation = maxRotation;
 }
开发者ID:xiaopanCode,项目名称:SteamVR_Unity_Toolkit,代码行数:4,代码来源:Controller_Hand.cs


示例12: DoTriggerPressed

 private void DoTriggerPressed(object sender, ControllerInteractionEventArgs e)
 {
     tooltips.ShowTips(true, VRTK_ControllerTooltips.TooltipButtons.TriggerTooltip);
     actions.ToggleHighlightTrigger(true, Color.yellow, 0.5f);
     actions.SetControllerOpacity(0.8f);
 }
开发者ID:xiaopanCode,项目名称:SteamVR_Unity_Toolkit,代码行数:6,代码来源:VRTK_ControllerAppearance_Example.cs


示例13: DoTriggerReleased

 void DoTriggerReleased(object sender, ControllerInteractionEventArgs e)
 {
     rcCarScript.SetTriggerAxis(0f);
 }
开发者ID:Firgof,项目名称:HarrowingHeights,代码行数:4,代码来源:RC_Car_Controller.cs


示例14: EnablePointerBeam

 protected virtual void EnablePointerBeam(object sender, ControllerInteractionEventArgs e)
 {
     TurnOnBeam(e.controllerIndex);
 }
开发者ID:MechroCat22,项目名称:VR-Object-Hunt,代码行数:4,代码来源:VRTK_WorldPointer.cs


示例15: SetPointerDestination

 protected virtual void SetPointerDestination(object sender, ControllerInteractionEventArgs e)
 {
     PointerSet();
 }
开发者ID:MechroCat22,项目名称:VR-Object-Hunt,代码行数:4,代码来源:VRTK_WorldPointer.cs


示例16: OnTouchpadTouchStart

 public virtual void OnTouchpadTouchStart(ControllerInteractionEventArgs e)
 {
     if (TouchpadTouchStart != null)
         TouchpadTouchStart(this, e);
 }
开发者ID:xiaopanCode,项目名称:SteamVR_Unity_Toolkit,代码行数:5,代码来源:VRTK_ControllerEvents.cs


示例17: DoGrabOff

 private void DoGrabOff(object sender, ControllerInteractionEventArgs e)
 {
     targetGripRotation = originalGripRotation;
 }
开发者ID:xiaopanCode,项目名称:SteamVR_Unity_Toolkit,代码行数:4,代码来源:Controller_Hand.cs


示例18: OnGripReleased

 public virtual void OnGripReleased(ControllerInteractionEventArgs e)
 {
     if (GripReleased != null)
         GripReleased(this, e);
 }
开发者ID:xiaopanCode,项目名称:SteamVR_Unity_Toolkit,代码行数:5,代码来源:VRTK_ControllerEvents.cs


示例19: OnAliasUseOn

 public virtual void OnAliasUseOn(ControllerInteractionEventArgs e)
 {
     if (AliasUseOn != null)
         AliasUseOn(this, e);
 }
开发者ID:xiaopanCode,项目名称:SteamVR_Unity_Toolkit,代码行数:5,代码来源:VRTK_ControllerEvents.cs


示例20: OnAliasMenuOff

 public virtual void OnAliasMenuOff(ControllerInteractionEventArgs e)
 {
     if (AliasMenuOff != null)
         AliasMenuOff(this, e);
 }
开发者ID:xiaopanCode,项目名称:SteamVR_Unity_Toolkit,代码行数:5,代码来源:VRTK_ControllerEvents.cs



注:本文中的VRTK.ControllerInteractionEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# VRage.MyFixedPoint类代码示例发布时间:2022-05-26
下一篇:
C# Properties.frm_Properties类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap