dynamic generated materials are lost in Prefabs

Hi,

i’ve got a serious problem. After creating several new materials during edit time with my script, all this materials are lost, when i transfer them to a Prefab object.

One complete static level construction is a single Prefab, to use them in several scenes. But the materials are missing, except in the original scene.

see also this post: http://forum.unity3d.com/viewtopic.php?t=32349

I assume a editor script creates them?

Not a player script thats just execute in edit mode

Yes - it is a real edit script. I use the ScriptableWizard. And this was not the only edit script i wrote.

Unfortunately, I don’t think this problem can be solved - see the other thread mentioned above to see my reasoning.