Find Game Object with part of name

Is it possible to find a GameObject with only part of it’s name?

Say I have GameObjects like -

  1. Big Blue Car Type1 with a game tag of Car1
  2. Big Blue Car Type1 with a game tag of Car2
  3. Big Blue Car Type1 with a game tag of Car3

and

  1. Big Blue Car Type2 with a game tag of Car1
  2. Big Blue Car Type2 with a game tag of Car2
  3. Big Blue Car Type2 with a game tag of Car3
  4. Big Blue Car Type2 with a game tag of Car4

Is it possible to use GameObject.Find(“Car”); only the Car part of the string, or GameObject.FindGameObjectsWithTag(“Car”); ?

You can use Object.FindObjectsOfType(GameObject) as GameObject to get all game objects, and then iterate through the list to find matches.