How can I set world rotation for a blueprint component in the construction script?
Im making an environmental camera system using blueprint. Let me start by saying that the whole thing works perfect already. But my team asked if I could add a bit of preview for the camera system so that they can maneuver the camera in editor to see what the shot will look like without having to press Play every time. Naturally I decided to add this in the construction script, but to my dismay, rotation does not seem to work there.
To be clear Im setting the world location of my "Previewcam" to a known place along a spline. then taking the full length of the spline and converting it to a % which is exposed as a float variable. The Dev can then use the slider bar feature on the float variable to move the camera along the spline all the while watching the camera preview in editor.
The real issue is when the Dev is using the "FocusTarget" feature of my system where the dev can set the camera to focus a specific point in the scene by dragging a component target point to the desired place. In game, the camera works. That is, it slides moves along the spline keeping pace with the player character all the while rotating to focus the (now invisible) target point. However, in editor this last part does not work. The construction script does not rotate the preview cam. So it simply moves along the spline without focusing the target.
So my question is... Is there a way to make this work? Is rotation broken in construction script? If so is there a workaround I just having figured out?
asked Dec 04 '17 at 07:29 PM in Using UE4
Follow this question
Once you sign in you will be able to subscribe for any updates here