Scheduling and priorities

Xenko doesn't run scripts simultaneously; they run one at a time. Where scripts depend on each other, you should make sure they run in the correct order by giving them priorities.

Priorities apply to all kinds of scripts. This means that, for example, don't have separate priority lists. They both join the same queue.

If scripts have the same priority, the order in which Xenko runs them isn't deterministic. You might give scripts the same priority if you don't care which order they run in.

Note

Currently, there's no way to see a list of priorities in one place. You have to set each priority of each script individually in the script component properties.

  • With the entity selected, in the Property Grid, under the script component properties, set the Priority you want the script to have.

See also