UKismetInputLibrary::Key_IsAxis3D
#include "Kismet/KismetInputLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns true if the key is a 3D (vector) axis, such as device tilt/motion input.
Caveats & Gotchas
- • This covers motion/tilt-style keys specifically — most gamepad and mouse input is exposed as 1D or 2D axes, so this returns false for the vast majority of input devices.
- • Unlike 1D axes, there is no separate analog/digital split for 3D axes — a 3D motion key is always treated as a continuous analog input.
Signature
static bool Key_IsAxis3D(const FKey& Key); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Key | const FKey& | The key to test. | — |
Return Type
bool Example
Detect motion/tilt axis bindings C++
if (UKismetInputLibrary::Key_IsAxis3D(BoundKey))
{
BindMotionAxisMapping("Tilt", BoundKey);
} See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?