Can I set a default prefab to a script?

Can I set a default prefab to a script, so that if I attach the script to a new object, it’ll have the public var transforms already set?

I have several types of enemies, and the script needs to be able to instantiate them. The script needs to be connected to several different things, where the enemies will be created. The way I’m doing it now is adding the script to a new object (like a road) and then dragging all the enemies into the slots.

Is there an easier way to do this, or is there something I don’t understand enough?

The way I handle this type of case is to create a new prefab that has the prefab variables assigned, that way I can assign them once and drop the object in any scene.

I don’t think there is a callback ‘OnWasAttached’ or something like that. However, you can put the script on every objects that needs, select them all, and use the multi editing feature to assign everything properly, all at once.