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"

Hot Reloading constructor code

I was messing around with the Top Down game template and wanted to change the camera behavior, which is defined in the character class. However, it seems to reload only when I restart the editor. I assume it's because the constructor code is only executed once when the level loads, although shouldn't it also run when the game starts and the player is spawned in the level?

How can I Hot Reload constructor code?

Product Version: Not Selected
more ▼

asked Mar 25 '14 at 06:48 AM in C++ Programming

avatar image

131 4 8 12

avatar image hyperdr1ve Oct 17 '14 at 08:32 PM

I'm having this exact same issue. Hot-reloads do not seem to update anything done in the constructor, even though I can trigger a breakpoint and inspect the variable being set i.e. (CameraBoom->TargetArmLength) it's almost like there's a default object that's not getting destroyed.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Artless and hyperdr1ve,

Thank you for mentioning this issue. This particular issue has been reported and a ticket entered to have it investigated.


more ▼

answered Oct 30 '14 at 11:00 PM

avatar image Tim C ♦♦ STAFF Dec 26 '14 at 05:35 PM

I just wanted to provide a quick update on this issue. A fix was recently submitted to correct this. I ran a quick test using the fix and it appears that everything is working correctly now. If you built the Engine using source code, you can find the commit containing the fix here. If you are using the binary version of the Engine installed by the Launcher, the fix will be included in a future released version of the Engine.


(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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