UISlideArea
Drag area that converts touch movement into axis values.
Create in the Editor
- Ensure there is a
UIControllerin the scene. - Create a GameObject and add
UIRect. - Add the
UISlideAreacomponent.
How to Use
- Get the component with
myObject.findComponent(UISlideArea.class). - Read and write the component properties to control behavior.
- Test input or layout in Play mode.
Java Example
SpatialObject myObject = /* your object */;
UISlideArea comp = myObject.findComponent(UISlideArea.class);
if (comp != null) {
// No exposed properties in the Java API
}