Raycast from inside a mesh collider (cube)

Hello , This is Mahsa
I have quick question , how can i use raycast inside a mesh collider ( cube ) from inside to outside

  1. Place this Collider on a layer that this Raycast’s layerMask will ignore
  1. Physics.RaycastAll then interpret it’s RaycastHit[] results

You could do RaycastAll, then pick what you wanted to hit or not