Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
1
Question by ronaldosilva · Mar 12, 2012 at 04:42 PM · assetprojectpathrelative

Relative asset paths

Hi everyone. Recently I am making a game with a friend, and we are using SVN to store our entire project. The problem is that we he updates the local copy and open the Unity, all scene is messed up, he loses all links to prefabs and all objects that should be on stage are gone. I think this happens because the absolute path that unity input in my assets, pointing to the full location on my hard drive, and since my friend try to open these same files in his context, the program cant find the full location reference and messes with it. Is there any way that I could use relative paths to the Unity Project? I tryed once use the Asset Server, but its too far complicated and I could not setup.

Thanks any advice.

Comment
Add comment · Show 1
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 Fattie · Jan 25, 2016 at 03:51 PM 0
Share

Unity works perfectly, and best with subversion. You should not use any other source control system with Unity.

It's very likely you simply forgot to exclude the Library and Temp folders - that's all there is to it.

With Unity you ONLY put Assets/ and ProjectSettings/ under source control, you must put both of those under source control and no others.

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by syclamoth · Mar 12, 2012 at 04:55 PM

Are you storing the entire project including the library folder? In any case, using default settings, Unity has a tendency to break terribly if you try to use it with SVN. The Asset Server is one solution for this- if you're intent on using source control for the entire project, you should really look into that again.

The problem is not to do with relative asset paths. I regularly carry large projects around on portable hard-drives, and they work perfectly just copied down to the computer on which I am currently working. Windows, Mac, it all works. I think your problem is to do with corrupt metadata.

As of 3.5 you can store metadata inline with the Assets folder, avoiding the need for a complicated Library folder! Go to the 'Editor' settings in your project, and change the Version Control mode to 'Meta Files'- this will enable support for external version control.

Having done this, you should add the Assets and ProjectSettings folders to your version control, ignoring the Library and Temp folders. This should allow you to synchronise your projects easily.

Comment
Add comment · Show 2 · Share
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 ronaldosilva · Mar 12, 2012 at 05:15 PM 0
Share

Oh! Thank you very much! I was once interested in asset server, but I could not set up properly and I gave up. And when using SVN I put assets and project settings under version control, but I did not work either. But one thing i think i missed. The $$anonymous$$eta Data control options. I will try that! Thanks for the advice!! =D

avatar image syclamoth · Mar 12, 2012 at 05:19 PM 0
Share

I think the '$$anonymous$$eta' flag allows Unity to completely rebuild the library folder if it goes missing.

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

Access assets from project window through code 1 Answer

How to get an object (asset) from his path ? 1 Answer

How to auto-navigate project hierarchy to asset by clicking in inspector? (Doesn't work anymore.) 1 Answer

Asset store login problems 1 Answer

How should I organize a project for asset store submission? 2 Answers


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