Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 571 Bytes

UNT0001.md

File metadata and controls

38 lines (27 loc) · 571 Bytes

UNT0001 Empty Unity message

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.