docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IGrabObjects

    Provides methods and delegates used to directly select and grab scene objects

    Inherited Members
    IFunctionalitySubscriber<IProvidesCanGrabObject>.provider
    Namespace: Unity.EditorXR.Interfaces
    Assembly: solution.dll
    Syntax
    public interface IGrabObjects : IUsesCanGrabObject, IFunctionalitySubscriber<IProvidesCanGrabObject>, IFunctionalitySubscriber

    Methods

    Name Description
    DropHeldObjects(Node)

    Drop objects held with a given node

    Resume(Node)

    Resume acting on objects held with a given node

    Suspend(Node)

    Stop acting on objects held with a given node

    TransferHeldObjects(Transform, Transform, Vector3)

    Transfer a held object between rayOrigins (i.e. dragging into the MiniWorld)

    Events

    Name Description
    objectsDropped

    Must be called by the implementer when objects have been dropped Params: the rayOrigin, the dropped objects

    objectsGrabbed

    Must be called by the implementer when an object has been grabbed Params: the rayOrign, the grabbed objects

    objectsTransferred

    Must be called by the implementer when objects have been transferred Params: the source rayOrigin, the destination rayOrigin

    Extension Methods

    UsesCanGrabObjectMethods.CanGrabObject(IUsesCanGrabObject, GameObject, Transform)
    In This Article
    Back to top
    Copyright © 2024 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)