UInputComponent::GetAxisValue

Gets the current value of the axis with the specified name.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/InputComponent.h

Include

#include "Components/InputComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/InputComponent.cpp

Syntax

float GetAxisValue
(
    const FName AxisName
) const

Remarks

Gets the current value of the axis with the specified name.

Returns

Axis value.

Parameters

Parameter

Description

AxisName

The name of the axis.

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss