x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

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?

Product Version: UE 4.18
Tags:
more ▼

asked Dec 04 '17 at 07:29 PM in Using UE4

avatar image

Cross1013
31 1 3

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question