Class TargetMover

Inheritance Relationships

Base Type

  • public MonoBehaviour

Class Documentation

class TargetMover : public MonoBehaviour

Sample script to move a target.

Public Functions

void UpdateTargetPosition()

Calculate new target position

Public Members

LayerMask mask

Mask for the raycast placement

Transform target

Target object

bool onlyOnDoubleClick

Determines if the target position should be updated every frame or only on double-click