In the attached project, the controller Blueprint is set to apply rotation based on a pair of bool values indicating whether the A (Rotate Left) or D (Rotate Right) keys are pressed. The controller Blueprint has a function (Apply Rotation) that is called on tick that calls Add Yaw Input and provides either a negative or positive input depending on which key is pressed.
When the Apply Rotation function is called from within the controller Blueprint, the yaw input is not actually applied. However, if the character Blueprint gets its controller and casts to it, then calls Apply Rotation, the yaw input is applied as expected. It is unclear why the yaw input functions as expected when called from the Character Blueprint, but not when called from the Controller Blueprint.
REGRESSION:
No. The same behavior occurs in 4.20.3 (and reportedly in previous versions of the Engine as well).
RESULT:
The camera only rotates as expected when the Apply Rotation function in the BP_TestController is called from within the BP_TestCharacter Blueprint.
EXPECTED:
The camera rotates as expected with Apply Rotation being called from within the BP_TestController Blueprint.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-66786 in the post.
1 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.21, 4.22, 4.20.3 |
Created | Nov 20, 2018 |
---|---|
Resolved | Aug 18, 2021 |
Updated | Aug 18, 2021 |