private void DrawOutline(Camera camera) { if (drawAABBTree && m_voxelizer != null) { Matrix4x4 m = transform.localToWorldMatrix; foreach (Box3 box in m_voxelizer.Bounds) { DrawLines.DrawBounds(camera, Color.red, box, m); } } }
private void OnRenderObject() { var camera = Camera.current; if (drawAABBTree && m_voxelizer != null) { Matrix4x4 m = transform.localToWorldMatrix; foreach (Box3 box in m_voxelizer.Bounds) { DrawLines.DrawBounds(camera, Color.red, box, m); } } }