docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class XRBodyScale

    Transformation that sets the uniform local scale of the target's originTransform to the specified value, and then repositions the Origin such that the world position of where the user's body is grounded remains the same. The body ground position is determined by the target's bodyPositionEvaluator.

    Inheritance
    object
    XRBodyScale
    Implements
    IXRBodyTransformation
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Locomotion
    Assembly: solution.dll
    Syntax
    public class XRBodyScale : IXRBodyTransformation

    Properties

    Name Description
    uniformScale

    Uniform value to scale the originTransform to. The local scale of the Origin will be set to one multiplied by this value.

    Methods

    Name Description
    Apply(XRMovableBody)

    Performs the transformation on the given body.

    In This Article
    Back to top
    Copyright © 2023 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)