Is it possible to tick preview actors / components?

Hi. My components get ticks just fine, but preview components (members of preview actors - created for asset in content browser for preview purposes) never receive ticks. RegisterComponentTickFunctions is never called for preview components it it seems (the only difference is that preview actors are marked as Transient, as far as I can tell). Is there a way to make this work? Thanks.

You mean components are not ticking inside Blueprint Components?

If so, you should check component/actor to tick in editor as well.

Sorry, i’m totally not sure what preview actors you’re talking about.

No. These are preview actors / with components constructed for preview purposes in Content Browser. They are not blueprint. They are also constructed when you drag an asset from Content Browser into your scene (before you drop). As question states, this is a c++ question.

I didn’t say here anything blueprint specific, Blueprint Components meant to be Components tab in Blueprint editor for your actors.

As i said, nothing would tick in editor until you check specified bool; though preview is not tickable AFAIK.

None of that is relevant to my question.

Lol, ok.

That’s fine if you think content browser preview is not a part of editor.

And what exactly does that have to do with my question? While I appreciate the effort, I really think you should stop and let someone who knows about this subject answer this question. Thanks.

#bTickInEditor = true;

Check out SkeletalMeshComponent.cpp, in the constructor:

PrimaryComponentTick.bCanEverTick = true;
PrimaryComponentTick.TickGroup = TG_PrePhysics;

bTickInEditor = true;

I can verify that this works for my own custom components!

Enjoy!

Rama

Thanks Rama, that worked. I missed the bTickInEditor thing.

That’s exactly what i told you to do.

But instead of simply trying that you said i replied on wrong subject and started telling me i didn’t know what i’m taking about :slight_smile:

Hi. I still think you did not answer my question, even though you were on a right track. I did not understand any of your Blueprint references or why you had to bring them up. I appreciate it though.

Sorry, Rama, it seems I jumped the gun too early, I still do not get ticks in editor for preview components. Now I am starting to wonder if it’s even possible

It seems there’s no way to get preview components to tick. I solved this problem by using a custom timer to tick.