The Android XR SDK is now available in Developer Preview. We want your feedback! Visit our
support page to reach out.
Stay organized with collections
Save and categorize content based on your preferences.
XRAvatarSkeletonJointIDUtility
Utility class for XRAvatarSkeletonJointID.
Summary
Public static functions
FromIndex
XRAvatarSkeletonJointID FromIndex(
int index
)
Gets the corresponding XRAvatarSkeletonJointID from an index into an array of associated data.
Details |
Parameters |
index
|
Index to convert to an ID.
|
|
Returns
|
The ID matching the index passed in.
|
JointCount
int JointCount()
Gets the count of joints provided by an avatar skeleton.
Details |
Returns
|
The amount of joints of an avatar skeleton.
|
ToIndex
int ToIndex(
this XRAvatarSkeletonJointID jointId
)
Converts XRAvatarSkeletonJointID to its corresponding index into an array of joint data.
Details |
Parameters |
jointId
|
ID of the joint to convert to an index.
|
|
Returns
|
The index matching the ID passed in.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-08 UTC."],[],[],null,["# XRAvatarSkeletonJointIDUtility Class Reference\n\nXRAvatarSkeletonJointIDUtility\n==============================\n\nUtility class for [XRAvatarSkeletonJointID](/develop/xr/unity/reference/namespace/Google/XR/Extensions#xravatarskeletonjointid).\n\nSummary\n-------\n\n| ### Public static functions ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [FromIndex](#fromindex)`(int index)` | [XRAvatarSkeletonJointID](/develop/xr/unity/reference/namespace/Google/XR/Extensions#xravatarskeletonjointid) Gets the corresponding [XRAvatarSkeletonJointID](/develop/xr/unity/reference/namespace/Google/XR/Extensions#xravatarskeletonjointid) from an index into an array of associated data. |\n| [JointCount](#jointcount)`()` | `int` Gets the count of joints provided by an avatar skeleton. |\n| [ToIndex](#toindex)`(this `[XRAvatarSkeletonJointID](/develop/xr/unity/reference/namespace/Google/XR/Extensions#xravatarskeletonjointid)` jointId)` | `int` Converts [XRAvatarSkeletonJointID](/develop/xr/unity/reference/namespace/Google/XR/Extensions#xravatarskeletonjointid) to its corresponding index into an array of joint data. |\n\nPublic static functions\n-----------------------\n\n### FromIndex\n\n```c#\nXRAvatarSkeletonJointID FromIndex(\n int index\n)\n``` \nGets the corresponding [XRAvatarSkeletonJointID](/develop/xr/unity/reference/namespace/Google/XR/Extensions#xravatarskeletonjointid) from an index into an array of associated data.\n\n\n| Details ||\n|-------------|-----------------------------------------------------------------------------------|\n| Parameters | |---------|----------------------------| | `index` | Index to convert to an ID. | |\n| **Returns** | The ID matching the index passed in. |\n\n### JointCount\n\n```c#\nint JointCount()\n``` \nGets the count of joints provided by an avatar skeleton.\n\n\n| Details ||\n|-------------|---------------------------------------------|\n| **Returns** | The amount of joints of an avatar skeleton. |\n\n### ToIndex\n\n```c#\nint ToIndex(\n this XRAvatarSkeletonJointID jointId\n)\n``` \nConverts [XRAvatarSkeletonJointID](/develop/xr/unity/reference/namespace/Google/XR/Extensions#xravatarskeletonjointid) to its corresponding index into an array of joint data.\n\n\n| Details ||\n|-------------|-----------------------------------------------------------------------------------------------------------------|\n| Parameters | |-----------|-----------------------------------------| | `jointId` | ID of the joint to convert to an index. | |\n| **Returns** | The index matching the ID passed in. |"]]