Version: 2023.1

DragAndDrop.SceneDropHandler

切换到手册
public delegateDragAndDropVisualMode SceneDropHandler (Object dropUpon, Vector3 worldPosition, Vector2 viewportPosition, Transform parentForDraggedObjects, bool perform);

参数

dropUpon Dragged Game Object that is being dropped into the Scene view.
worldPosition Position in the world.
viewportPosition Position in the viewport.
parentForDraggedObjects Parent transform of the dragged object.
perform True if the event is of type EventType.DragPerform.

描述

Handler for the Scene.