- Home /
Question by
matheusgadelha · Feb 07, 2013 at 04:06 AM ·
gameobjectprefabeditor extension
Created Prefab is not preserving original GameObject attributes
I am creating a custom GameObject from an editor extension routine. However, when a prefab is created using that GameObject, it loses some information. Being more specific: my GameObject contains a MeshRenderer, a MeshFilter and a script attached to it. Along with its creation I am adding some information to this components: a code-created mesh and a custom shader material. When the prefab is created it does not contains the mesh I've created or the material.
I've also tried to create the prefab through code, but the result is the same.
Does anyone has faced similar problems or guesses a workaround for this issue?
Comment