Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Spatial > API/Runtime/GeometryCore/Spatial/TSparseGrid2 > API/Runtime/GeometryCore/Spatial/TSparseGrid2/Get
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Spatial/SparseGrid2.h |
| Include | #include "Spatial/SparseGrid2.h" |
ElemType * Get
(
const FVector2i & Index,
bool bAllocateIfMissing
)
Remarks
Get the grid element at this index, and optionally allocate it if it doesn't exist pointer to ElemType instance, or nullptr if element doesn't exist
Parameters
| Name | Description |
|---|---|
| Index | integer grid index |
| bAllocateIfMissing | if the element at this index is null, allocate a new one |