UNT0001 Empty Unity message
December 11, 2019 ยท View on GitHub
Unity messages are called by the runtime even if they're empty. Remove them to avoid unnecessary processing.
Examples of patterns that are flagged by this analyzer
using UnityEngine;
class Camera : MonoBehaviour
{
private void FixedUpdate()
{
}
private void Foo()
{
}
}
Solution
Remove empty Unity message:
using UnityEngine;
class Camera : MonoBehaviour
{
private void Foo()
{
}
}
A code fix is offered for this diagnostic to automatically apply this change.