void ObjectsInSpace_DestroyOctree()
        {
            if (octree != null)
            {
                for (int n = 0; n < octreeObjects.Count; n++)
                {
                    var obj = octreeObjects[n];
                    if (obj != null)
                    {
                        obj.sceneOctreeIndex = -1;
                    }
                }
                octreeObjects.Clear();

                octree.Dispose();
                octree = null;
            }
        }
 public void Dispose()
 {
     octreeContainer?.Dispose();
     octreeContainer = null;
 }