title: C# Unity Raycast through an object without having to ignore it and still hit it
body: <p>Esstinaly what I am trying to do is have a Raycast pass though an object and hit another object inside without ignoring the first object, so if the player has there mouse over the first object but not the second it will only hit the first object but if the mouse is over both it will hit only the second object, I can provide visual reference if possible it is only to display some text about said second object.</p>
  
  <pre><code>        Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
          RaycastHit hitInfo;
  
  
          if (Physics.Raycast(ray, out hitInfo))
          {
  
              {
                  NameTag = hitInfo.transform.name;   //Send information of the Object to the GUI Label
  
                  hoverOverActive = true;
  </code></pre>
  
  <p>This is the basic Raycast script I have .</p>