Пример #1
0
    private void OnDrawGizmosSelected()
    {
#if UNITY_EDITOR
        if (Application.isPlaying == false || this.enabled == false)
        {
            return;
        }
        if (_voxelArray == null)
        {
            return;
        }
        foreach (VoxelBound tBound in _voxelArray)
        {
            if (tBound.overlapWithTriangle == true)
            {
                Handles.DrawWireCube(tBound.boundBox.center, tBound.boundBox.half * 2);
            }
        }
        if (showOctree)
        {
            octree.DebugDraw();
        }
#endif
    }
Пример #2
0
 public void DebugDraw()
 {
     _octree?.DebugDraw();
 }