LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

BaseInputModule.DetermineMoveDirection

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

Parameters

xX movement.
yY movement.
deadZoneDead zone.

Description

Given an input movement, determine the best MoveDirection.