Child of ACameraActor not ticking

Hi,

I’ve currently created a class based off ACameraActor called DynamicCamera. I know the class is created in the hierarchy and the begin play function is called, but Tick doesn’t seem to be, even though I have PrimaryActorTick.bCanEverTick set to true.

Any suggestions?

Hello.

Yours Tick function doesn’'t get called because you’re missing Super::BeginPlay call in your BeginPlay function implementation.

Edit:
If you skipped that Super call on purpose, you should at least call below line to allow your actor to tick.

RegisterAllActorTickFunctions(true, false);

Keep in mind that components of your camera class won’t tick, tho. (AActor::BeginPlay implementation - Github acc linked to UE4 is required to see this).

Cheers.

If you have a Blueprint Class derived from this class, check your blueprint options under Actor Tick make sure Start with Tick Enabled is set to true. Some times the blueprint class overrides properties of the c++ base class.

Can’t believe I didn’t see that. That was it. Thanks

Happens to everyone. :smiley:
You’re welcome.