Diagnostic code · ARA0506
Process or environment access
The module profile forbids accessing or changing process-wide state. The process belongs to the editor or player. The edit is rejected; the last good code keeps running.
Common causes
- Using console or debug output, environment APIs,
GC, process APIs or other disallowed process state. - Attempting
Environment.ExitorEnvironment.FailFast, which remain forbidden in editor modules.
Fixes
Apply the output code fix to use
Log.InfoorLog.Error; use the suppliedTickfor simulation time.Apply the offered fixes to replace
Environment.NewLinewith"\n"or remove an explicitGC.Collect()statement.Remove process termination and configuration changes from module code; let the host manage its own lifetime.
Code:
ARA0506Constant:
cs::API_PROCESSReported by: Ara.Analyzers