Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Diagnostic code · ARA0001

Unity API or convention

A Unity API or lifecycle convention has no equivalent meaning in Ara. This is a compilation error; the edit is not installed and the last good code keeps running.

Common causes

  • Using UnityEngine, deriving from MonoBehaviour, or declaring Unity callbacks such as Update or Start.
  • Calling GetComponent<T>(), Debug.Log, or Time.deltaTime, or using lowercase fields on System.Numerics vectors.

Fixes

  • Apply the offered code fix: remove using UnityEngine, use the Ara namespace, and derive a partial class from Behaviour.

  • Override OnTick(in Tick tick) for Update/FixedUpdate, OnFrame(in Frame frame) for LateUpdate, and OnSpawn() for Start/Awake; combine duplicate callbacks when needed.

  • Use ref var value = ref Get<T>() for ECS writes, tick.Dt for the fixed step, Log.Info/Warn/Error for output, and uppercase vector fields such as .X.

  • Code: ARA0001

  • Constant: cs::UNITY_ISM

  • Reported by: Ara.Analyzers