Unity - Scripting API: EventSystems.BaseInputModule.DetermineMoveDirection ­
Legacy Documentation: Version 4.6.2
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 MoveDirection DetermineMoveDirection(float x, float y);
protected static MoveDirection DetermineMoveDirection(float x, float y, float deadZone);

Parameters

x X Movement.
y Y Movement.
deadZone Deadzone.

Description

Given an input movement, determine the best MoveDirection.