Scripting API

Scripting API

EngineSystems

Class in Abyss.Core, from Abyss.Core.

The systems the engine declares itself, by the name they are registered under.

public static class EngineSystems

Constants

ResolveTransforms

public const string ResolveTransforms = "ResolveTransforms"

Recomputes every entity's GlobalTransform now, part way through your schedule.

Add it with Schedule.AddHosted, between a system that writes Transform and one that reads world space. Without it that reader sees last frame's values, because the guaranteed propagation runs in Bevy's PostUpdate — after your schedule, by construction. It is also how a game that never runs a Bevy frame at all, such as a dedicated server, gets world transforms resolved.

It is the thorough form, not the cheap one. It walks each entity's ancestors and recomputes from scratch, with no change detection, so it costs the whole hierarchy every time it runs. World.RunBevyFrame does the change-detected version and skips subtrees nothing moved. Running this does not replace that pass; that pass still runs and finds nothing to do.

Its predecessor was called PropagateTransforms and was the cheap one. The name is different so that nobody inherits the difference in cost without noticing.