docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method LinkConstrainedManipulator

    LinkConstrainedManipulator(IConstrainedXRBodyManipulator)

    Links the given constrained manipulator to this body. This sets constrainedManipulator to manipulator and calls OnLinkedToBody(XRMovableBody) on the manipulator.

    Declaration
    public void LinkConstrainedManipulator(IConstrainedXRBodyManipulator manipulator)
    Parameters
    Type Name Description
    IConstrainedXRBodyManipulator manipulator

    The constrained manipulator to link.

    Remarks

    If constrainedManipulator is already not null when this is called, this first calls OnUnlinkedFromBody() on constrainedManipulator. Also, if the given manipulator already has a linkedBody set, this calls UnlinkConstrainedManipulator() on that body.

    See Also
    UnlinkConstrainedManipulator()
    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)