Unity messages should not be flagged as candidates for static modifier.
CA1822 - Mark members as static
using UnityEngine;
class Camera : MonoBehaviour
{
void Update()
{
//Some code that does not access instance data
}
}
Members that do not access instance data or call instance methods can be marked as static for performance reasons.
Unity messages will not be processed if they are marked static.