Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

BaseInputModule.DetermineMoveDirection

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

Parameters

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

Description

Given an input movement, determine the best MoveDirection.