Object Touch allows the user to touch and drag objects that have one of the Color Groups specified by the Group Filter parameter.
Note 1: If the Object Touch is a node instead of attached to an object, it will act as a global Object Touch and work for all objects in the Hype.
Note 2: If the object has a Physical component, it has to be set to Dynamic in order to be draggable.
|Enabled||Enables the component’s function.|
|Consume Touch||Prevents other touch-related components (like Joystick and Button) from being executed when you tap an object with Object Touch.|
|React Only Physical Objects||Prevents objects without a Physical component from being touched or dragged by the user.|
|Type||Touch Trigger||Only allows touch triggers.|
|Drag Ground||Allows dragging objects in the XZ axis, along the ground.|
|Drag Camera||Allows dragging objects in the XY axis, along the camera.|
|Group Filter||Object Touch will only work in objects that have Color Groups specified here.|
|On Touch Start||Outputted value when the object starts receiving a touch input.|
|On Touch Move||Outputted value every frame the object is being dragged.|
|On Touch End||Outputted value when the touch input is stopped.|
Creating a Draggable Object • 0:49 • Annotated Tutorial
Demonstration of Drag Types in Object Touch component
Make a Game End on Object Touch • 1:23 • Stream Segment
Includes using Object Touch & Game End components