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"

UFUNCTION = "bad function definition"


I have a UObject that contains the following:

     UFUNCTION(BlueprintCallable, Category="Test")
     void UTest::TestActorFunction();

This should be pretty basic but every time I try to compile, I receive the error "bad function definition."

The UObject is being dynamically generated, which shouldn't make a difference. Still, I copied the code above and placed it in a AActor that is placed in the scene and the code compiles just fine.

What is going on here? :) Thanks!

Product Version: UE 4.9
more ▼

asked Sep 27 '15 at 07:02 PM in Blueprint Scripting

avatar image

116 15 17 21

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

1 answer: sort voted first

Try this:

 UFUNCTION(BlueprintCallable, Category="Test")
    void TestActorFunction();
more ▼

answered Sep 27 '15 at 07:34 PM

avatar image

2.6k 73 49 131

avatar image irdc Sep 28 '15 at 01:30 AM

Well I'm a total idiot. Thanks :D

(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