protected virtual void OnDrawGizmosSelected() { if (this.Grid == null) { return; } Vector3 gridCellSize = this.Grid.GridCellSize; var extents = new Vector3(this.Width * gridCellSize.x, this.Height * gridCellSize.y, this.Depth * gridCellSize.z); GizmosEx.DrawWireBox(this.transform.position + extents * 0.5f, extents); }