UFUNCTION = "bad function definition"

Greetings!

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? :slight_smile: Thanks!

Try this:

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

Well I’m a total idiot. Thanks :smiley: