- Home /
How to save a prefab with script attached to it?
I'd like to submit something to the asset store. The asset contains prefabs that have scripts attached to them. But as soon as I start a new project and import the package, the prefabs have missing script components attached to them instead of the scripts themselve. How can I fix this?
When I drag out the prefabs from the original project, they have their scripts attached just fine...
Answer by DaveA · Dec 13, 2012 at 01:06 AM
I'm pretty sure the AS documents tell you how to do this (via export Unity package file). Make sure you export with Dependencies so it packages the scripts too.
Answer by Aphex3k · Dec 13, 2012 at 02:22 AM
Thanks, stupid me. Should've read it a little more thoroughly...
Your answer
Follow this Question
Related Questions
getting prefabs form project to another 3 Answers
Accessing a game object from a script? 1 Answer
Instantiated PreFab selection problem 1 Answer
Export game objects with mesh paths 0 Answers
Unity fire1 prefab in code 2 Answers