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"

Methods with the same name as a component callback always called?

I had created a "HealthComponent" with a callback called "OnHealthChanged". I then made a binding to the callback (in the CTOR, my bad) to the parent actor's "OnHealthChanged" method. When I decided to move the binding to the BeginPlay() method I noticed that the callback was getting called twice. I then decided to remove all binding calls and yet the call is still going through. This happened on two different actors that had the same pattern and the only solution has been to rename the callbacks to something unique (IE CB_OnHealthChanged() or the like).

Is this normal?

Product Version: UE 4.20
Tags:
more ▼

asked Oct 17 '18 at 01:55 PM in C++ Programming

avatar image

MkJackson
6 1 3

avatar image MkJackson Oct 17 '18 at 02:58 PM

OK, I'm thinking it has to do with the CTOR code not getting refreshed even if I do a "Clean + Rebuild" in VS. Is there a way to clear the BP cache? I think the BP's are still using the old CTOR to init the object. :-/

(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