当前位置: 首页>>代码示例>>C#>>正文


C# Controller.SetPolicyFlags方法代码示例

本文整理汇总了C#中Controller.SetPolicyFlags方法的典型用法代码示例。如果您正苦于以下问题:C# Controller.SetPolicyFlags方法的具体用法?C# Controller.SetPolicyFlags怎么用?C# Controller.SetPolicyFlags使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Controller的用法示例。


在下文中一共展示了Controller.SetPolicyFlags方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Start

  void Start() {
    leap_controller_ = new Controller();
    leap_controller_.SetPolicyFlags(Controller.PolicyFlag.POLICY_IMAGES);

    SetMainTextureDimensions(DEFAULT_TEXTURE_WIDTH, DEFAULT_TEXTURE_HEIGHT);
    SetDistortionDimensions(DEFAULT_DISTORTION_WIDTH, DEFAULT_DISTORTION_HEIGHT);
  }
开发者ID:NeroInu,项目名称:ThenTheMagicHappens,代码行数:7,代码来源:LeapImageRetriever.cs

示例2: Awake

  void Awake() {
    leap_controller_ = new Controller();

    // Optimize for top-down tracking if on head mounted display.
    Controller.PolicyFlag policy_flags = leap_controller_.PolicyFlags;
    if (isHeadMounted)
      policy_flags |= Controller.PolicyFlag.POLICY_OPTIMIZE_HMD;
    else
      policy_flags &= ~Controller.PolicyFlag.POLICY_OPTIMIZE_HMD;

    leap_controller_.SetPolicyFlags(policy_flags);
  }
开发者ID:gabeochoa,项目名称:box,代码行数:12,代码来源:HandController.cs

示例3: Start

  void Start() {
    leap_controller_ = new Controller();
    
    Controller.PolicyFlag policy_flags = leap_controller_.PolicyFlags;
    if (isHeadMounted)
      policy_flags |= Controller.PolicyFlag.POLICY_OPTIMIZE_HMD;
    else
      policy_flags &= ~Controller.PolicyFlag.POLICY_OPTIMIZE_HMD;
    leap_controller_.SetPolicyFlags(policy_flags);

    hand_graphics_ = new Dictionary<int, HandModel>();
    hand_physics_ = new Dictionary<int, HandModel>();

    tools_ = new Dictionary<int, ToolModel>();

    if (leap_controller_ == null) {
      Debug.LogWarning(
          "Cannot connect to controller. Make sure you have Leap Motion v2.0+ installed");
    }

    if (enableRecordPlayback && recordingAsset != null)
      recorder_.Load(recordingAsset);
  }
开发者ID:sacha67000,项目名称:Kinect-Project,代码行数:23,代码来源:HandController.cs

示例4: Awake

    void Awake()
    {
        //leapContrlPos = GameObject.Find("ControllerSandBox").transform.position;
        leap_controller_ = new Controller();

        // Optimize for top-down tracking if on head mounted display.
        Controller.PolicyFlag policy_flags = leap_controller_.PolicyFlags;
        if (isHeadMounted)
          policy_flags |= Controller.PolicyFlag.POLICY_OPTIMIZE_HMD;
        else
          policy_flags &= ~Controller.PolicyFlag.POLICY_OPTIMIZE_HMD;

        leap_controller_.SetPolicyFlags(policy_flags);
    }
开发者ID:TheHolodeckProject,项目名称:UnityHolodeckProject,代码行数:14,代码来源:HandController.cs


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