Target Arm length doesn't work
I've stumbled across something I can't wrap my head around: I want my camera to zoom in and out via the mouse wheel. This should be a fairly easy thing to do; create a spring arm, attach your camera to it and then change the length of the target arm as necessary. Basic stuff, and I've done it in the past a few times. Well, now it doesn't work anymore.
As seen in the second image, the length of the arm does indeed change, but the camera doesn't move accordingly to it. Even weirder: If I change any other parameter - rotation, position, fov of the camera... - those changes work perfectly fine. The only thing that doesn't seem to have any effect whatsoever seems to be the target arm length, which decidedly doesn't make any sense to me.
Did I forget anything essentially to make this work or is there any work around?
Thank you in advance for your replies!
asked Jan 07 '18 at 02:22 PM in Blueprint Scripting
One explanation could be that the springarm's length is being set on Tick someplace else. Instead of printing it in this function, print the length in the Pawn's (or whatever object it's attached to) Tick and observe the value.
This problem may be caused by collision test, unchecking "Do Collision Test" in SpringArm's details and try again.
answered Apr 21 '18 at 05:53 AM
I had similar problem. This happened after I create new game mode and new game state. Problem was I used just gamestate instead gamestatebase. After applying gamestatebase problem is gone. Absolutely have no idea how conect spring arm and game state but it works for me.
answered Jul 18 '18 at 09:22 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here