Ultimate Touch Components Documentation
Neowave GamesSetup
- Add the desired UTC component to your Actor. The Actor must inherit from either Pawn or Character.
- Open the Actor's EventGraph.
- Add the following nodes: InputTouch (native Unreal Engine node)
- UTC Touch Input Manager (provided by Ultimate Touch Components)
- Forward all events from the InputTouch node to the UTC Touch Input Manager node.
- Select the UTC component in the Components panel and open its Details panel. Scroll down to the Events section and add any desired event to your Event Graph.
- Implement your gameplay logic using the component events.
- You can add multiple UTC components to the same Actor. When doing so, make sure to properly configure component bounds and priorities to avoid unwanted input conflicts.
Bounds
Each UTC component can operate within its own dedicated area of the screen.
To define a component's active area, use the SetupBounds function, preferably during BeginPlay.
Bounds can be specified in:
- Screen percentages (recommended)
- Absolute pixel values
When using percentage-based bounds, make sure the corresponding option is enabled in the SetupBounds node.
Although bounds can also be configured through the component's Details panel, using the SetupBounds function is recommended because it performs additional internal initialization and validation.
Overlaps and Priorities
When multiple UTC components are active simultaneously, their input areas may overlap.
If overlapping areas are intentional or unavoidable, configure component priorities to determine which component receives input first.
All components use a priority value of 0 by default.
Priorities can be configured in two ways:
a) Using Blueprint
- Drag a reference to the component into the EventGraph.
- Pull from the component pin.
- Use the available functions to set the desired priority.
b) Using the Details Panel
- Select the component in the Components list.
- Locate the Priority property in the Details panel.
- Assign a higher value to components that should receive input before others.
When multiple components overlap, the component with the highest priority will process the touch input first.