Very strange issue I’ve not had a problem with before in other projects. Using latest 5.1
SpringArm & Camera component on a pawn. I’ve got debugging keys hardwired in to increase/decrease the length of the TargetArmLength. The function is firing, its all logged, the variable says the TargetArmLength was modified (directly read from the arm) but the camera just did not move. Its attached properly to the socket. There is no blocking geometry. And I’ve experimented with both disabling and enabling collision detection. In the same function, I’ve successfully changed relative rotation etc, so I know Im targeting the right camera/arm combo and the function is routed correctly. My pawn (and its geometry) moves around the scene (empty) and the arm/camera follow, so I know theyre attached to root ok, and Ive removed all the pawns geometry to ensure that is not colliding with the camera/arm.
So from the PIE, i alt-tab out of game while its running, I click on my Pawn in the Outliner and go to the SpringArm - I see the target length variable IS changing (in the details panel) when I press my debug keys but the camera view doesn’t move.
So manually in the details panel - I click in the entry box for Target Length, enter a number and press enter. The camera now does move with the new length, and both my viewport and pop up camera view update. (Surely this proves that the spring arm and camera is set up correctly and the length is free to be moved). The only place in code I can *successfully set the TargetArmLength is in the constructor. After that, nothing apart from manual entry and enter in the details panel will change it.
I have spent hours searching, but I don’t understand why it could be behaving like this. I have used this function many times in other projects successfully.
More Info…
In Game Mode Base I have a very simple default Pawn defined, used for navigating title menues pre-game. Upon Level Load, I have successfully unpossessed it, destroyed it and reposessed to my “game” pawn as best I know how, all other input is working fine to my game pawn, even to the spring arm, so Im confident I’ve possessed it correctly, but changing TargetArm Length just will not fire off when modified, even though it says its changed, and the function logs out ok.
Am I missing something I just cant think of?