Version: 2017.3 (switch to 2017.4)
LanguageEnglish
  • C#
  • JS

Script language

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

BaseInputModule.DetermineMoveDirection

protected static method DetermineMoveDirection(x: float, y: float): EventSystems.MoveDirection;
protected static method DetermineMoveDirection(x: float, y: float, deadZone: float): EventSystems.MoveDirection;

Parameters

x X movement.
y Y movement.
deadZone Dead zone.

Description

Given an input movement, determine the best MoveDirection.

Did you find this page useful? Please give it a rating: