- Home /
Unity project referencing another Unity project?
Hi,
is it possible one Unity project to reference content from another Unity project? I am not speaking of just scripts, but also resources, game objects, scenes, everything.
As example, in Android development one project can be declared as "libraby" project and completely reused in multiple other Android projects. Is there a similar mechanism in Unity?
Thank you!
@meat5000 , thank for the reply!
What I read in the Asset Bundles documentation, is "AssetBundles can contain asset files such as models, materials, textures and scenes. AssetBundles cannot contain scripts.".
What I am imagining, is really 1:1 reuse - whatever is contained in the "library" project, to be available in the "extending" project.
You could compile all the scripts in your "library" project to a .DLL and then just import that DLL as a plugin into any projects that needed to reference it: http://docs.unity3d.com/$$anonymous$$anual/UsingDLL.html
Hi @tanoshimi , thanks for the reply. This DLL will then contain just the scripts, right? Or you mean to include the Game Objects and assests as Asset Bundles and the scripts, which belong to them - as DLL? Will this work?
If you use some form of version control, you could have a repository with all the common stuff and check it out to all projects as a subrepository
Hi, @Nose$$anonymous$$ills , how will this help? Right now I have the two projects in same version control repository. The question is - how to make the second project (extended/specific stuff) to have reference to the first project (common stuff), so that all DataObjects, scripts, etc are available in both, but only developed in the first (common stuff). Oh! Or you mean - to simply replace the content? Not quite the expected extension concept, right?
Your answer
Follow this Question
Related Questions
I want to access objects in my scene with a prefab when it spawns. 1 Answer
Can't find Monobehaviours in Asset Folder when using ObjectPicker 0 Answers
Problems with Exported Game 1 Answer
getting prefabs form project to another 3 Answers
How to check if a component is on an instantiated prefab? 1 Answer