- Home /
Can't add components to imported FBX
Hello,
I'm sure this has been covered before, though I can't seem to find appropriate documentation on the matter, which is;
I've imported a rig and animation clips as FBX files successfully into Unity. I can't seem to add components directly to the imported FBX files though. Here's a screenshot of my example:
I want to add components to the char object in my project so that I can do stuff with it. Unity won't let me though, so am I correct in saying that I have to drag it to the scene, then drag it back to my project to create a (duplicate) prefab, so that I can add components?
Is the idea instead to create the instance of char and add components to the instance through code, when I'm actually setting up my characters?
Thanks for the advice
Answer by jorjdboss · Jul 06, 2013 at 12:27 PM
Drag objects from project to hierarchy/scene. Then select the object and attach a script by dragging it onto the inspector/hierarchy /scene for that particular object. If you want to attach multiple scripts to an object you can lock it in the inspector
Then you can convert them to prefabs. Any change you make in the inspector can be saved to prefab by pressing Apply.
The other way is through code where you use gameobject.AddComponent()
You cant drag scripts onto model imports, but you can drag them onto prefabs and they will be auto saved.
i am having a similar problem, except the "apply button" isn't there. The three options I have are select, revert and open, Where did the apply button go?