UEA0009: InvokeFunctionMissing
October 2, 2019 ยท View on GitHub
| Property | Value |
|---|---|
| Id | UEA0009 |
| Category | Performance |
| Severity | Warning |
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); }
}