Function doesn't get showed in event graph

Function “the_world” doesn’t get showed in event graph of blueprint

test.h:


test.cpp:

i wanna make static function to use it in event graph

Where are you trying to call it from?

You can only call it from an Actor that derives from Atest.

from class of actor.

Try to compile while the editor is closed then.

there is no such event

Did you create a blueprint that subclasses AActor? or subclasses Atest?

You won’t be able to use that function from an AActor blueprint because actor doesn’t have that function. You need a blueprint derived from Atest, then it should be accessible in the event graph.

What subclasses?

Im newbie in ue5, but i know c++. And ye, i began learning ue5 and i dont know where to take information

If you know C++ then you should know what a subclass is and what subclassing means.

class Atest : public AActor

Atest is the subclass. AActor is the parent class. When you create Atest derived from AActor that is subclassing.
When you create a blueprint, you select a class to derive from or extend. That is subclassing.

When you created your blueprint what class did you select as the type to extend? If you open your blueprint, it should be displayed in the upper-right corner of the window as a link.

i created blueprint with class “Actor”, then i named it the same as c++ script

lemme check blueprint

That’s not how blueprints work. You don’t create a class in c++ and add blueprint logic to it by creating the same thing in the editor. You need to create your blueprint with the class Atest. Then your function will be available.

1 Like