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"

BlueprintImplementableEvent not showing in editor

I'm declaring following event function inside my Actor.h:

 UFUNCTION(BlueprintImplementableEvent, Category = "Event", meta =(DisplayName = "OnEvent"))
  virtual void OnCustomEvent(const FString& text);

But it doesn't appear in graph editor. Switching off context sensitive doesn't help.

Product Version: UE 4.8
Tags:
more ▼

asked Aug 07 '15 at 07:41 PM in Blueprint Scripting

avatar image

AlastaAr
26 1 3 4

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

1 answer: sort voted first

Hey AlastaAr-

If you want to call a code function inside a blueprint then you want to give it the specifier BlueprintCallable. BlueprintImplementableEvent is used when you have basic functionality of a function in code but plan to override that functionality in a blueprint and should appear in the override list of the blueprints function list.

Cheers

Doug Wilson

more ▼

answered Aug 07 '15 at 08:05 PM

avatar image AlastaAr Aug 08 '15 at 10:33 AM

Thanks for your answer. But my question was misleading - I was looking in worng place. I thought, that custom event can be called from every blueprint, not only in class blueprint, where I declared this event.

avatar image Doug E ♦♦ STAFF Aug 10 '15 at 12:54 PM

Things outside the class where the function is declared can't "see" that the function exists. If you would like to call the function from another blueprint you would first have to cast to the class and then call the function from there.

(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