Ultimate Touch Components Documentation

Ultimate Touch Components Documentation

Andy Dee

"Long story, short..."

Setup

  1. Add the desired UTC component to your actor (it must be derived from Pawn or Character)
  2. Open blueprint EvenGraph of this actor
  3. Add two nodes to your event graph: InputTouch (native UE4 node) and UTC Touch Input Manager (node from UTC library)
  4. Pass all events from the InputTouch node to UTC Touch Input Manager node
  5. Select your UTC component (that you added to your actor on the first step) in the components list and look at the Details panel - scroll it down to see all available events, and click on any desired event to add it to your actor's EventGraph
  6. Add as many components, as you want. Don't forget to set up component bounds (on the screen) to prevent overlaps, or if you have overlaps - set up priorities (read below).

Bounds

Every component can have its own bounds on the screen - a dedicated area where this specific component should work. To define bounds please use the SetupBounds node in your EventGraph, better with the BeginPlay event. Bounds can be set in percent (of the screen size), or in absolute values in pixels (not recommended). To set bounds in percent be sure that the corresponding option is checked in the SetupBounds node.

However it's possible to set up bounds using the component's Details panel, it's recommended to use the function since it makes extra work under the hood.

Overlaps and Priorities

If you have added multiple UTC components and after setting up bounds they still have overlaps (overlapping of the active areas), then it's recommended to set their priorities (all zero by default). You can do this on the EventGraph (just take a component's node on the EventGraph and drag its pin to see the list of available functions and variables), or you can set them on the Details panel (when you selected the component in the list of the actor components).

Report Page