BArtisan.Thrusters.Helpers.Paths.BThrusterHelperPathMoveNodeAtTouch Class Reference
+ Inheritance diagram for BArtisan.Thrusters.Helpers.Paths.BThrusterHelperPathMoveNodeAtTouch:

Detailed Description

Detects the left Click or the first Touch (using the legacy Input System) and moves a PathNode to that position.

It was built for demo purposes to simulate the "touch to move a GO with animation". Remember that if the Actor finished its path (reached the last Node position in its path) you need to call the RestartPath function to resume its behavior (or fill the actorToTrigger property)

Member Data Documentation

◆ nodeToMove

BThrusterPathNode BArtisan.Thrusters.Helpers.Paths.BThrusterHelperPathMoveNodeAtTouch.nodeToMove

The Node that will be moved at the cursor/touch position.

◆ actorToTrigger

BThrusterPathActor BArtisan.Thrusters.Helpers.Paths.BThrusterHelperPathMoveNodeAtTouch.actorToTrigger

(optional) The PathActor on which to call RestartPath() after the node was moved.

◆ debugLog

bool BArtisan.Thrusters.BBaseMonobehaviour.debugLog = false
inherited

Enable to debug this component. Warning: it may result in CPU intensive debug messages (each frame).