Dragger

사용되지 않는 항목 표시

The Dragger object is a helper object used to create tools that can drag parts. It is expected (but not required) to be used with Mouse events.

Its implementation is primarily used in the RbxStamper library.

요약

메서드

  • AxisRotate(axis : Enum.Axis):void

    Rotates the currently dragged part(s) by 90 degrees on the given axis.

  • MouseDown(mousePart : Instance,pointOnMousePart : Vector3,parts : Instances):void

    Initializes a dragging action, specifying which parts to use when dragging.

  • MouseMove(mouseRay : Ray):void

    Tries to move the currently dragged part to the point where MouseRay hits another part.

  • MouseUp():void

    Stops the current dragging action (made by Dragger:MouseDown()).

속성

메서드

AxisRotate

void

Rotates the currently dragged part(s) by 90 degrees on the given axis.

매개 변수

axis: Enum.Axis
기본값: "X"

반환

void

MouseDown

void

Initializes a dragging action, specifying which parts to use when dragging.

매개 변수

mousePart: Instance
pointOnMousePart: Vector3
parts: Instances

반환

void

MouseMove

void

Tries to move the currently dragged part to the point where MouseRay hits another part.

매개 변수

mouseRay: Ray

반환

void

MouseUp

void

Stops the current dragging action (made by Dragger:MouseDown())


반환

void

이벤트