The DragMode determines how an object is dragged around in the scene.

Enumeration Members

Attached: 1

Object is dragged as if it was attached to the pointer. In 2D, that means it's dragged along the camera screen plane. In XR, it's dragged by the controller/hand.

DynamicViewAngle: 3

Combination of XZ and Screen based on the viewing angle. Low angles result in Screen dragging and higher angles in XZ dragging.

HitNormal: 2

Object is dragged along the initial raycast hit normal.

None: 5

Don't allow dragging the object

SnapToSurfaces: 4

The drag plane is adjusted dynamically while dragging.

XZPlane: 0

Object stays at the same horizontal plane as it started. Commonly used for objects on the floor

Generated using TypeDoc