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 fromMonoBehaviour, or declaring Unity callbacks such asUpdateorStart. - Calling
GetComponent<T>(),Debug.Log, orTime.deltaTime, or using lowercase fields onSystem.Numericsvectors.
Fixes
Apply the offered code fix: remove
using UnityEngine, use theAranamespace, and derive apartialclass fromBehaviour.Override
OnTick(in Tick tick)forUpdate/FixedUpdate,OnFrame(in Frame frame)forLateUpdate, andOnSpawn()forStart/Awake; combine duplicate callbacks when needed.Use
ref var value = ref Get<T>()for ECS writes,tick.Dtfor the fixed step,Log.Info/Warn/Errorfor output, and uppercase vector fields such as.X.Code:
ARA0001Constant:
cs::UNITY_ISMReported by: Ara.Analyzers