Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by DragonsLabs · Apr 15, 2016 at 09:05 AM · prefabscript.sceneprojectproject settings

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!

Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image meat5000 ♦ · Apr 15, 2016 at 09:14 AM 0
Share

Asset Bundles.

avatar image DragonsLabs · Apr 15, 2016 at 12:03 PM 0
Share

@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.

avatar image tanoshimi DragonsLabs · Apr 15, 2016 at 12:29 PM 0
Share

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

avatar image DragonsLabs · Apr 15, 2016 at 01:00 PM 0
Share

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?

avatar image NoseKills · Apr 15, 2016 at 02:43 PM 0
Share

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

avatar image DragonsLabs · Apr 15, 2016 at 03:18 PM 0
Share

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?

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges