public void OnDrawGizmosSelected()
        {
            Gizmos.color = _drawColor;

            var extents = _history[_historyIndex];

            if (extents.Count > 0)
            {
                GizmoShapeDrawer.DrawByExtents(extents);
                Handles.Label(extents[0], _spaceName);
            }
        }
示例#2
0
 private void DrawBuilderBoundaries(ChunkBuilder builder)
 {
     Gizmos.color = Color.blue;
     GizmoShapeDrawer.DrawRectangle(builder.TopRightCorner, builder.BottomLeftCorner);
 }
示例#3
0
 private void DrawChunkBoundaries(Chunk chunk)
 {
     Gizmos.color = Color.white;
     GizmoShapeDrawer.DrawRectangle(chunk.TopRightCorner, chunk.BottomLeftCorner);
 }