0
\$\begingroup\$

The problem is that the begin play and tick functions do not work in a blueprint inherited from a C++ class.

If the blueprint does not inherit from a C++ class, then the functions work perfectly.

Functions declaration in C++ parent class:

protected:
    virtual void BeginPlay() override;

public:
    //Called every frame
    virtual void Tick(float DeltaTime) override;

Child BP:

Tick settings

BeginPlay and Tick events linked to print strings

Nothing appears on startup.

\$\endgroup\$
0

2 Answers 2

0
\$\begingroup\$

Blueprint events are not the C++ defined functions. You need to call a public C++ function with an event.

I copied exactly what you showed and hit play. My screen was filled with text.

\$\endgroup\$
1
  • \$\begingroup\$ Thanks for trying to help! The problem was that the base C++ class, from which the APocketDrill class is inherited, did not contain a call to the Super method in BeginPlay. Now all is clear. \$\endgroup\$
    – OMEGA
    Feb 20 at 7:41
0
\$\begingroup\$

The problem was that the base C++ class, from which the APocketDrill class is inherited, did not contain a call to the Super method in BeginPlay.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .