docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UnderCameraBodyPositionEvaluator

    Scriptable object that estimates the user's body position by projecting the position of the camera onto the XZ plane of the Unity.XR.CoreUtils.XROrigin.

    Inheritance
    object
    Object
    ScriptableObject
    UnderCameraBodyPositionEvaluator
    Implements
    IXRBodyPositionEvaluator
    Inherited Members
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.Interaction.Toolkit.Locomotion
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    [CreateAssetMenu(fileName = "UnderCameraBodyPositionEvaluator", menuName = "XR/Locomotion/Under Camera Body Position Evaluator")]
    [HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@3.0/api/UnityEngine.XR.Interaction.Toolkit.Locomotion.UnderCameraBodyPositionEvaluator.html")]
    public class UnderCameraBodyPositionEvaluator : ScriptableObject, IXRBodyPositionEvaluator
    Remarks

    This is the default bodyPositionEvaluator for an XRBodyTransformer.

    Methods

    GetBodyGroundLocalPosition(XROrigin)

    Gets the position of where the user's body is grounded (e.g. their feet), in the local space of the Unity.XR.CoreUtils.XROrigin.Origin.

    Declaration
    public Vector3 GetBodyGroundLocalPosition(XROrigin xrOrigin)
    Parameters
    Type Name Description
    XROrigin xrOrigin

    The XR Origin whose body position to get.

    Returns
    Type Description
    Vector3

    Returns the position of where the user's body is grounded, in the local space of the Unity.XR.CoreUtils.XROrigin.Origin.

    Implements

    IXRBodyPositionEvaluator

    Extension Methods

    XRBodyPositionEvaluatorExtensions.GetBodyGroundWorldPosition(IXRBodyPositionEvaluator, XROrigin)
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)