Control Type
Last updated
Last updated
The Control Type specifies the intended function of the touch control, whether it’s used for movement, camera manipulation, or performing actions. Each type comes with its own unique behavior tailored to its purpose, enhancing the overall gameplay controls.
Available Control Types:
Default None: No additional behavior. Best when only using basic interactions.
Push Button: Designed for discrete actions, such as jumping or attacking.
Analog Stick: Suitable for directional movement, such as character navigation.
Steering Wheel: Ideal for precise turning or steering in driving mechanics.
Swipe Pad: Great for infinite runner games, enabling quick swiping actions.
Gesture Pad: Typically used for camera controls, including zoom and orbit.
Most Control Types support Input Simulation, which allows you to simulate input by using a Control Path. A Control Path specifies the input you want to mimic, such as a Keyboard Key, Gamepad Button, and so on.
At runtime, a virtual input device is automatically created based on the specified Control Path in the Input Simulate
field. The Control Type then links its value to the corresponding input control on this virtual input device.
The Input Simulate
field varies depending on the defined Control Type and can represent different kinds of Control Path, such as:
Control Path Button: Push Button, Swipe Pad.
Control Path Axis: Steering Wheel, Gesture Pad Pinch and Twist.
Control Path Vector2: Analog Stick, Gesture Pad Pan.
Certain control types, such as Swipe Pad or Gesture Pad, utilize coordinate scaling settings to ensure consistent touch points coordination across various screen sizes or resolutions.
Scale Mode Options:
Screen Pixel: Position and distance are defined in raw screen pixels, maintaining exact dimensions regardless of the screen resolution.
Screen Size: Position and distance are scaled relative to a specified reference resolution, ensuring proportional adaptation across different screen sizes.
Scaled Pixel: Position and distance are adjusted according to a specified reference DPI, allowing for consistent physical dimensions across devices with varying pixel densities.