Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Diagnostic code · ARA0504

Threads, locks or tasks

Gameplay code attempts to control concurrency outside the engine schedule. The edit is rejected; the last good code keeps running. Systems already execute over chunks on the engine's worker threads.

Common causes

  • Using System.Threading or task APIs from a gameplay module.
  • Using await or lock in gameplay code.

Fixes

  • Express parallel gameplay work as systems with declared component and resource accesses.

  • Keep asynchronous editor work in an editor module and pass resulting gameplay changes through typed commands.

  • Code: ARA0504

  • Constant: cs::API_THREADING

  • Reported by: Ara.Analyzers