Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EventSystems.BaseInputModule.DetermineMoveDirection

Switch to Manual
protected static function DetermineMoveDirection(x: float, y: float): MoveDirection;
protected static function DetermineMoveDirection(x: float, y: float, deadZone: float): MoveDirection;

Parameters

x X Movement.
y Y Movement.
deadZone Deadzone.

Description

Given an input movement, determine the best MoveDirection.