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 |