Hi,
Is it possible to make a Actor Tick in Editor Or is it just for Components?
If it is possible, how do you do it?
Thanks,
Hi,
Is it possible to make a Actor Tick in Editor Or is it just for Components?
If it is possible, how do you do it?
Thanks,
Add this in your Actor constructor
PrimaryActorTick.bCanEverTick = true;
I already have:
PrimaryActorTick.bCanEverTick= true;
PrimaryActorTick.bStartWithTickEnabled = true;
PrimaryActorTick.bAllowTickOnDedicatedServer = true;
PrimaryActorTick.bTickEvenWhenPaused = true;
and it’s not ticking while I’m in the editor, but ticking in PIE.
Have you succeed in getting the Tick function called by doing this?
oh ok, u must play to get the tick function run, tick only run in runtime. the only think get run in editor it the construction script when u place an actor in the level.
In fact to get the Actor tick in the Editor during Level edition, you must override:
ShouldTickIfViewportsOnly and return true.
Then the tick function will work as the regular “game” parameter like PrimaryActorTick.bCanEverTick, PrimaryActorTick.bStartWithTickEnabled…
You must set your viewports to Real-time by using the pull-down menu in the upper left corner of the viewport, or by pressing CTRL+R.
i was trying to find a method directly from blueprints, i used a timer by function name on the construction script, it does update but looks like it does not update the components, for example changing the rotation of a mesh will not update the mesh, any ideas ?