Hi Everybody!
I’m learning to use C++ with the UE4, actually I made a derivative class of a UObject and I need to overload the Init() method. What i’ve seen is that in the .cpp of my class I should implement the Init() with the method “Init_Implementation()”, instead if directly implement “Init()”.
Then I’ll have:
MyClass.h
class MyClass : public UObject
{
…
…
protected:
UFUNCTION(BlueprintNativeEvent)
void Init();
}
MyClass.cpp
…
…
void MyClass::Init_Implementation()
{
…My Init implementation
}
Why is like that??