DragInput

Wire Editor

Description

  • Component converts Analog Input value to Drag information.

  • You can use when you want to get input from the swiping or rubbing sensor.

  • It’s advantageous on the type of sensor, which resets and disappears input status rather than the input status is maintained when the relevant action is finished.

Inspector

When Unity Play Mode

minValue

  • Minimum value determined by the effective range within 0 ~ 1 range value

  • (For example, if minValue is, lower than 0.1 value is ignored.)

maxValue

  • Maximum value determined by the effective range within 0 ~ 1 range value.​​

  • (For example, if maxValue is 0.9, more than 0.9 value is ignored.)

Invert

  • Get an input of drag direction upside down.

deltaMultiplier

  • Multiplier used in delta values which contains in drag information

forceMultiplier

  • Multiplier used in force values which contains in drag information

Drag information

(Only appears when Unity is PlayMode)

isDrag

  • Whether AnalogInput value is included in the valid range determined by minValue / maxValue

delta

  • Relative distance from the start value of drag to existing drag value.

  • It is delivered by being multiplied by deltaMultiplier

force

  • Physical force which is generated when the drag is finished

  • It is delivered by being multiplied by forceMultiplier.

Value

  • Value when the AnalogInput value is in between minValue / maxValue

  • Last value is maintained when drag is finished.

Wiring