
When using Physics.NonAlloc, you don't need to think about the array size.This package is not dependent on any render pipeline.Background1. Why should we pay attention to trivial matters? When using Physics.NonAlloc, determining the size of the array is usually unnecessary.If the number of detected colliders exceeds the size of the array, the DynamicArray will automatically resize the array.2. When executing Physics.NonAlloc method, the number of detected colliders and the actual colliders are handled separately as an int and an array[], making it inconvenient to use.A DynamicArray instance holding this information would be more convenient to use.3. For concise code.using var result = DPhysics.OverlapSphereNonAllocFromPool(transform.position, 3); foreach (var collider in result){ Debug.Log(collider.name);}Use Case1. automatic resizing2. foreach loop3. for loop4. passing the detected collider array as a parameterThe detected colliders and their count can be accessed from anywhere using dynamicarray5. from pool of dynamic array6. shorthandReadme.mdhttps://github.com/santutu/unity-dynamic-array/blob/main/README.mdSamplehttps://github.com/santutu/unity-dynamic-array/blob/main/Assets/Santutu/Core/DynamicArray/Samples/Sample.cs