Tactile Control
Last updated
Last updated
A Tactile Control is a component that can be attached to any UI game object, providing an interactive on-screen control that allows users to interact through touch.
The Interactable
determines whether the control can be interacted with. It will becomes non-interactable internally if the associated game object or component is disabled.
The component is consists of two main systems which driven the component, organized into collapsible sections:
The Touchable Area
specifies the region of the screen where touch interactions are detected. Depending on the type, its shape can be defined as a box, circle, or other forms. Additionally, it manages finger-related information, such as tracking touch positions and interactions within the defined area.
The Control Type
defines the specific function of the control, whether it’s for movement, camera, or actions. Each type comes with its own unique control behavior, enhancing the overall interaction.
Clicking the question mark icon on the far right of each drawer opens a documentation dialog, offering detailed information about the selected type and its parameters.
Located at the bottom part of the component, each Tactile Control must have a unique ID. This ID is essential for fast and efficient lookups, particularly in situations where a reference to the component is required before it exists in the scene.
If there are duplicate IDs in the scene, an error message will appear above the ID field, showing the hierarchy path of the Tactile Controls that share the same ID. Take advantage of this information to resolve the duplication issue.