UEA0009: InvokeFunctionMissing

October 2, 2019 ยท View on GitHub

PropertyValue
IdUEA0009
CategoryPerformance
SeverityWarning

Example

Code with Diagnostic

using UnityEngine;

class CC : MonoBehaviour { }

class C : MonoBehaviour
{
    private CC cc;
    void Start() { cc.InvokeRepeating("DoSomething", 0f, 0f); }
}

Code with Fix

using UnityEngine;

class CC : MonoBehaviour 
{ 
    public void DoSomething() { }
}

class C : MonoBehaviour
{
    private CC cc;
    void Start() { cc.InvokeRepeating("DoSomething", 0f, 0f); }
}