Interface IDropReceiver | Unity Reflect | 1.1.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IDropReceiver

    Implementors can receive IDroppables

    Namespace: UnityEditor.Experimental.EditorVR
    Syntax
    public interface IDropReceiver

    Methods

    CanDrop(Object)

    Called when an object is hovering over the receiver

    Declaration
    bool CanDrop(object dropObject)
    Parameters
    Type Name Description
    Object dropObject

    The object we are dropping

    Returns
    Type Description
    Boolean

    Whether the drop can be accepted

    OnDropHoverEnded()

    Called when a pointer with a valid drop object stops hovering

    Declaration
    void OnDropHoverEnded()

    OnDropHoverStarted()

    Called when a pointer with a valid drop object starts hovering

    Declaration
    void OnDropHoverStarted()

    ReceiveDrop(Object)

    Called when an object is dropped on the receiver

    Declaration
    void ReceiveDrop(object dropObject)
    Parameters
    Type Name Description
    Object dropObject

    The object we are dropping

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023