When using the camera boundaries component in camera center mode it works as expected in top down ortho, but if I switch to perspective camera the camera center is more a "screen center" or "camera target".
Would it be possible to add some mode in next versions to behave like in top down ortho (limit camera position XZ to collider limits in XZ)?
Also, seems there is a bug when drawing the debug gizmos, "bounderiesCollider" doesn't seem to have any value when checked in the last "if" of OnDrawGizmos (seems it's not even needed as it's already using the boxCollider or the sphereCollider). When commented out, it draws the gizmos.
if (type == Type.Rectangle)// && bounderiesCollider is BoxCollider)
{
// ...
}
else if (type == Type.Circle)// && bounderiesCollider is SphereCollider)
{
//...
}
Thanks!