How can I override GetStatId from FTickableGameObject?

Hi, I’m trying to override the GetStatId function fromt the FTickableGameObject, but i’m kinda lost. What should it return?

Ok I solved it, apparently you have to call the UObject function GetStatID().

I know this is an old comment and it’s a great answer but I am going to try to save people some time.

GetStatID() is what you need to call not GetStatId(); Spent a few moments looking for the correct function. In the end the following worked great.

virtual TStatId GetStatId() const override { return Super::GetStatID(); }

Thanks for the additional information :slight_smile:

TStatId YouClassName::GetStatId() const
{
RETURN_QUICK_DECLARE_CYCLE_STAT(YouClassName, STATGROUP_Tickables);
}

4 Likes