百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
U

Unity-Movement

> 编程语言
开源

身体、眼睛和脸部跟踪代码示例。

386 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

身体、眼睛和脸部跟踪代码示例。

Unity-Movement

Unity-Movement is a package that uses OpenXR’s tracking layer APIs to expose Body Tracking (BT), Eye Tracking (ET), and Face Tracking (FT) capabilities. With this package, developers can leverage tracking to populate VR environments with custom avatars that bring the expressiveness of users into the virtual environments that they create.

License

The Unity-Movement package is released under the Oculus License. The MIT License applies to only certain, clearly marked documents. If an individual file does not indicate which license it is subject to, then the Oculus License applies.

Requirements

  • Unity 6000.0.66f2 or newer.
  • v81.0 or newer of the Meta XR SDK. You will need the Meta XR Core SDK and the Meta XR Interaction SDK packages found on this page.
  • A project set up with these steps.

Getting Started

First, ensure that all of the requirements are met.

Then, bring this package into the project.

  • In Package Manager, click on the add button below the window title and select Add package from git URL…, using this URL: https://github.com/oculus-samples/Unity-Movement.git
  • To grab a specific version of the package, append the version number with a # to the git URL (i.e. https://github.com/oculus-samples/Unity-Movement.git#v74.0.0)
  • Alternatively, in package manager, click on the add button below the window title and select Add package from disk..., using the package.json located after unzipping one of the releases here: https://github.com/oculus-samples/Unity-Movement/releases

The sample scenes are located under the Samples~/Scenes folder. For detailed information, please visit the related page.

Unity Setup

If the new scene or an existing scene doesn’t have a GameObject with the OVRCameraRig component, integrate body tracking as mentioned here and then follow these verification steps:

  1. From the Hierarchy tab, look for a Main Camera GameObject which comes in a new scene by default. If it it exists, then please delete it.
  2. Make sure a Camera Rig is in your scene, either by using the OVRCameraRig or by creating one using Building Blocks. To create a Camera Rig using Building Blocks, go to Meta->Tools->Building Blocks and select the (+) icon on the lower right of the Camera Rig option.
  3. Select the Camera Rig object in the Hierarchy, and in the Inspector tab, go to the OVRManager component and look for the "Quest Features" section.
  4. In the General tab, there are options to enable body, face, and eye tracking support. Make sure that Supported or Required is enabled for the type of tracking that you require.
  5. Under OVRManager's "Permission Requests On Startup" section, verify that Body, Face and Eye Tracking are enabled.
  6. Ensure that OVRManager's "Tracking Origin Type" is set to "Floor Level".
  7. In OVRManager's "Movement Tracking" verify that "High" for "Body Tracking Fidelity" is selected.
  8. In OVRManager's "Movement Tracking" verify that "Full Body" for "Body Tracking Joint Set" is selected.

Layer index 10, layer index 11, and the HiddenMesh layer must be present in the project for RecalculateNormals to work correctly.

You can validate project settings by navigating to Meta->Tools->Project Setup Tool.

Rendering Quality

Navigate to your Project Settings (Edit->Project Settings...) and click on the "Quality" section. If your project uses URP, then some of these settings might be part the rendering pipeline asset currently in use. The pipeline picked will be shown in the Quality menu.

The following settings are recommended:

  1. Four bones for Skin Weights.
  2. 2x or 4x Multi Sampling Anti Aliasing.
  3. Full resolution textures.
  4. Shadow settings:
    • Hard and soft shadows.
    • Very high shadow resolution.
    • Stable fit.
    • Shadow distance of 3 meters with cascades. This will allow viewing shadows nearby without experiencing poor quality.
  5. At least one pixel light.

Samples

The project contains several sample scenes. To test the samples, they must be imported into the project's Assets folder:

  • Select the "Meta XR Movement SDK" package in the package manager. Once selected, expand the Samples section and import the desired sample scenes.

For more information about body tracking, please refer to this page.

For more information about the samples, please refer to the body samples page and face samples page.

Build Settings

In order for the SceneSelectMenu buttons to work, add imported scenes in the Samples step to the Build Settings.

Documentation

The documentation for this package can be found here. The API reference for this package can be found here.

License

Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. Your use of this SDK or tool is subject to the Oculus SDK License Agreement, available at https://developer.oculus.com/licenses/oculussdk/

Files from Unity and SchemingDeveloper are licensed under their respective licensing terms.

AI coding agents

This repo is wired up for AI coding agents — AGENTS.md, .vscode/extensions.json, .mcp.json, .cursor/rules/, and a few client-specific dotfiles surface the Meta Horizon VS Code/Cursor extension, the hzdb MCP server, and the Meta Quest skill set automatically.

Full toolchain (including Unity skills and per-client install instructions):

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言