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
0
Question by pandavigoureux29 · Dec 18, 2012 at 03:33 PM · referencefiles

How to reference a file outside a project ?

Hello, and thanks in advance for your time.

I would like to know if is was possible to reference a file which is outside the asset folder of my unity project. I mean, the file would be accessible from the editor, but would be located somewhere else.

The problem is that I have to get some data from Perforce ( = svn) repository, and that i want my files to be updated in unity as i pull them from the server.

I tried an alias but it didn't work ( i didn't really expect it to )

Would someone have a solution please?

Vincent

(PS: sorry if there are some english mistakes)

Comment
Add comment · Show 3
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 Karsnen_2 · Dec 18, 2012 at 06:24 PM 0
Share

I do not think you can do it. But why do you like to access files outside your project folder? Any specific reason?

avatar image pandavigoureux29 · Dec 19, 2012 at 08:27 AM 0
Share

I have a big hierarchy of a project developed by another company. I need to access their resources that i update in my perforce repository. For an iteration matter, I would like that, when their push updated resources on the sever, I will not have to copy/paste them every time. So a link to the folder containing their resources would be great. I manage to do it by a symbolic link but i'm not sure at all that unity will automatically build the actual files ins$$anonymous$$d of the link

avatar image evilrobot · May 03, 2013 at 06:19 PM 0
Share

As a unity customer who has paid $25,000 in licenses for this tool, I must say that this is completely unacceptable. $$anonymous$$odularity in unity is useless, and the workflow for setting up projects and sharing code among projects and objects among scenes needs to be greatly improved.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by doug__ · Dec 19, 2012 at 03:46 PM

As far as I'm aware, the answer is no.

I use rsync to copy files in, trigger by an editor command for stuff like this, but it's annoying; after executing the import, you must do a project sync to make the files available in the editor.

Perhaps you can do a similar sort of thing?

You can invoke your choice of external command (eg. xcopy, git, etc.) like this:

   var p = new Process();
   p.StartInfo.UseShellExecute = false;
   p.StartInfo.RedirectStandardOutput = true;
   p.StartInfo.FileName = "/bin/ls";
   p.StartInfo.Arguments = "/tmp";
   p.Start();
   string output = p.StandardOutput.ReadToEnd();
   p.WaitForExit();
   UnityEngine.Debug.Log(output);
Comment
Add comment · 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

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

13 People are following this question.

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

Related Questions

Assets won't load 0 Answers

Bool from referenced script not updating? 2 Answers

Scriptable object saves but what about objects it references? 0 Answers

Can I make reference/assocation to another component as variable? 0 Answers

Change gameobject sprite with button 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