| Property | Value |
|---|---|
| Id | UEA0005 |
| Category | Performance |
| Severity | Warning |
using UnityEngine;
public class Example : MonoBehaviour
{
void Update()
{
// UEA0005: Warning to cache the result of find in Start or Awake
GameObject.Find("");
}
}using UnityEngine;
public class Example : MonoBehaviour
{
GameObject cachedObj;
void Start()
{
cachedObj = GameObject.Find("");
}
}