Adding Object Through Script

Hi,
This is my first post, I am new to UNITY. I wanted to know , whether it is possible to ADD a NEW object ,which is not part of the project bundle ,through scripting?
I am aware about prefabe can clone the existing object of project , but I want to add a new object from external file.

Thanks.

Sorry to reopen but does anyone know the answer for this. I need to know the way, if there is any.

Yes it is possible. You have access to file streams in Unity by using System.IO and the MSDN file streams (StreamWriter / Reader, I think)

Do you mean from a file locally or from the internet?
You have AssetBundles and WWW to access external assets just for starters.

@callahan.44 Vicenti : Thanks for the quick response. I am able to add texture and assign animation clip from outside of a unity project through WWW and file access by creating AssetBundle. My requirement is to add new parts to a human object from outside of unity project. How it can be achieved? Thanks again.

There is the option of finding/writing your own mesh importer (I’d suggest something like using XML and Collada format). Streaming in AssetBundles are still the easiest way to get external assets into your project.

I’m not sure why you can’t include it in the project and use Resource.Load to add custom body parts. Maybe you want to let other people mod and add new ones?

@callahan.44 : yes , firstly app would be having predefined parts and later on , user can purchase new parts. So for those new parts we need to load them from external medium. This is for an iPhone application. It would be great if you can share any book/blog link you myt b knowing , which shows solution to my question in detail.Many thanks for the help.