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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How can I properly override C++ Tick event in blueprint?

I've created a character in C++ inheriting from ACharacter, and I've overridden the virtual Tick function.

 virtual void Tick(float DeltaSeconds) override;

I then created a blueprint inheriting from my character class, and in the event graph created an "Event Tick" node which is connected to a "Parent: Tick" node created by right clicking on the event.

However, the Event Tick node won't execute (wire turns gray during play).

I've tried using the macro UFUNCTION(BlueprintImplementableEvent), but with the same result.

Commenting out the C++ Tick function makes the blueprint Event Tick node work again.

I've read that it may have to do with the fact that Tick doesn't return anything, in which case, how can I properly override a void function in blueprint?


Product Version: Not Selected
more ▼

asked Nov 05 '14 at 06:01 AM in C++ Programming

avatar image

405 11 18 36

avatar image nopunintendo Nov 05 '14 at 08:16 AM

I discovered a workaround.

I gave the blueprint the Tick function, and had a C++ function acting as Tick be UFUNCTION(BlueprintCallable), and then I called it in the blueprint tick.

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

1 answer: sort voted first

You probably forgot to call Super::Tick(DeltaSeconds) in your parent (c++) class from your overriding Tick method.

more ▼

answered Jan 04 '17 at 02:43 PM

avatar image

21 1 5

(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