Drag a layer in any direction. Choose the layer to drag and then connect the Position output to the layer's Position port.
向任意方向拖拽圖層。將Drag模塊的輸出口Position連接到要拖拽的圖層的Position屬性茫舶。
輸入口
Enable 開啟
A boolean that is true when dragging is enabled
拖拽能啟用時(shí)布爾值為真。
Layer 圖層
The name of the layer to drag. Click the value (a€?Nonea€?, by default) to select a layer. Controls which layer activates drag on touch.
拖拽圖層名稱七婴。點(diǎn)擊Layer的值選擇圖層。觸摸哪個(gè)圖層激活拖拽察滑。
(板栗:有A打厘、B兩個(gè)圖層,Drag的輸出口連接的A的位置屬性贺辰,Drag的Layer選擇為圖層B户盯,那觸摸B可以拖動(dòng)A,如果觸摸B意外的范圍就拖不動(dòng)饲化。不選就是觸摸整個(gè)屏幕激活圖層的拖拽先舷。)
Start 開始
The position the layer starts at when the prototype starts.
當(dāng)原型開始時(shí),被拖拽的圖層的位置滓侍。
Reset 重置
A pulse that resets the position to the start position.
重置到啟動(dòng)位置。 (板栗:Start設(shè)置的位置牲芋。)
Settings 設(shè)置
The settings from a Drag Settings patch that further customize drag behavior.
從Drag Setting模塊進(jìn)一步自定義拖動(dòng)行為的設(shè)置撩笆。
輸出口
Position 位置
The current position of the draggable layer.
拖動(dòng)層的當(dāng)前位置。(板栗:就是這個(gè)接口連接到要拖的圖層位置屬性)
Related Patches 相關(guān)模塊
Drag Settings
Related Examples 案例
Instagram Adjust
Use drag to control the Instagram straighten tool.