Property | Value |
---|---|
Id | UEA0013 |
Category | GC |
Severity | Warning |
Version | 5.3 -> |
using UnityEngine;
class Example : MonoBehaviour
{
void Start()
{
Physics2D.CircleCastAll(Vector2.zero, 5, Vector2.one);
}
}
using UnityEngine;
class Example : MonoBehaviour
{
void Start()
{
var results = new RaycastHit2D[X];
Physics2D.CircleCastNonAlloc(Vector2.zero, 5, Vector2.one, results);
}
}