Timers in Object type blueprint cause errors

Whenever I try to use timers in Object type blueprint, (Set Timer by Event function) it works, but always lags a little at the beginning and throws an error: LogOutputDevice:Warning: Script Stack:InstanceTransformer_C.ExecuteUbergraph_I - Pastebin.com

However, it happens ONLY ONCE per session - so when I exit the editor and play, it happens, but when I play again without closing editor, it’s fine. After restarting editor, it happens again, always only once. This seems like some buggy behavior.

… Also, the timers work without problems, so I don’t understand… Is there a way to workaround this? I use Object type blueprints because I spawn many of them and I thought that Actor type blueprints would hit the performance more…

Hey Slavq,

The issue here is that UObject classes do not contain a World. For simplicity’s sake, I’d recommend using an Actor-based class, as it will already have a reference to a world and you should not get the same ensure that you are seeing now.

It will not have much of an effect as far as performance goes, and it will save you a lot of time in the long run.

Have a great day

Thanks, so I’ll switch to Actor class then. Now I understand that UObject class doesn’t have a World reference, but the confusing part is that they work correctly anyway :slight_smile: - they throw these errors, but they work! … But that’s only my curiosity, the problem is resolved, thanks!