find all objects

Hi! I create objects by using Prefab at script CarScriptCreate.cs. Prefab called CarPrefabType1.
At another Script I want to tind all cars which has created by CarScriptCreate.cs.
I tryed to do this:

public CarPrefabType1 car1_object;
private CarPrefabType1 [] carObjects;
	// Use this for initialization
	void Start () 
	{
		carObjects= FindObjectsOfType(typeof(CarPrefabType1 ));
	
	}

But I can’t drag prefab into field CarPrefabType1 in the inspector because it isn’t shown. I don’t know why unity dont show this field. Compieler only writes that it doesn’t know this type. But I can’t attach this prefab to this script. I doing somethis wrong.

Please, tell me how I can find all objects which have created by another script by using Instantiate function.

Also I tryed to find objects by using function GameObject.FindGameObjectsWithTag(“CarPrefabType1”);
But in the Debug.Log I saw that
Unity Exception: Tag: CarPrefabType1 is not defined!
What should I do?

Try:

c#: GameObject.GetComponents();
js: GameObject.GetComponents(CarScriptCreate);

If these objects do not have a CarScriptCreate, they should have a script on it that defines the base.

If they have no script. You could just keep track of what you have created in an array (or array list)