Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 PaxForce · Jul 11, 2014 at 04:12 PM · editorsettings

set up default NewProject location + folders

is it possible to set up a default path when starting new project in Unity? I always start new projects in my .../blahblah/UnityProjects/MyNewProject, so it would make sense if there was a way to do this.

I also use the same folders in my projects - _scripts, _prefabs, _materials, etc. and I always have to create all these folder over and over again when making new project. Is there a way to have Unity create these folders automatically?

Comment
Add comment
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

5 Replies

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

Answer by Graham-Dunnett · Jul 11, 2014 at 05:44 PM

Pretty sure the project wizard just pulls the home folder and adds "New Unity Project".

To set up the assets folder, perhaps create a new project and manually create the folders. Then export that as a package. The new project wizard gives you a list of packages to import, so I guess if you can work out where that list comes from (probably a mix of some editor defaults and the location where asset store packages are found) you can have that project folder package imported into all new projects.

Comment
Add comment · Show 1 · 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 PaxForce · Sep 27, 2014 at 08:07 AM 0
Share

I can't believe I did not figure this out on my own...

avatar image
1

Answer by DeepwaterNewt · Sep 04, 2014 at 05:58 AM

Sorry to resurrect an old question, but I've found the answer, it's a simple registry entry that needs to be changed. See here: http://www.dociletree.co.za/adventures-in-unity-how-to-change-the-default-new-unity-project-path-in-windows/ for more information. This works for Windows installations only though...

Comment
Add comment · Show 1 · 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 dasparadoxon · Dec 15, 2014 at 07:07 PM 0
Share

this did not work for me. neither did I had the kProjectBasePath in the entry, only a string kProjectBasePath_. I created kProjectBasePath then but it didnt work, unity took the default project directory in my system drive :(

avatar image
1

Answer by housmous · Jul 03, 2015 at 07:32 AM

In Unity 5, when creating a new project, select whatever path you want. That location will be used for future new projects.

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
avatar image
0

Answer by ehfdub · Jan 25, 2015 at 01:15 AM

For Windows, Unity uses the personal documents folder as the default save-to location. As of Unity 4.6 this is not alterable nor does Unity save the last-used folder (unfortunately). I know this is a small feature but would be a nice time-saver for me.

If you're running Unity on Windows then you can try launching Unity from a script which sets temporarily updates the personal documents folder and reverts the value when Unity is closed. Details can be found here http://blog.electrongoo.com/how-to-update-unity3ds-default-project-location/

Good luck!

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
avatar image
0

Answer by MurrayBridgeHS · Sep 09, 2021 at 02:28 AM

As we are running Unity in a school lab where the computers are heavily restricted, we needed a way that wasnt involved in the home folder as this is redirected to a network share for students, and the speed in reading/writing the Unity data to the share was very slow

Also we have the run command disabled so browsing UNC paths doesnt work so we were getting errors here as well.

The following registry keys are what control the path for the project and workspace path

Computer\HKEY_USERS*User*\SOFTWARE\Unity Technologies\Unity Editor 5.x

kProjectBasePath_h4113231939

kWorkspacePath_h3086459462

The data is stored in hexadecimal values in the above locations as a REG_BINARY string

Convert your desired path from a text string to hex https://codebeautify.org/string-hex-converter

The binary values set in the registry are represented as hexadecimal values but the method used here requires to pass regular decimal vales so we need to convert that as well We can use the scientific mode on calc.exe to convert the hex into seperate decimal values I got most of the info from this page https://devblogs.microsoft.com/scripting/how-can-i-write-binary-data-to-the-registry/

We used ActiveSetup to push the setting into the default user hive, so any new users logging in will have this set on first login Here is my code to set the paths to the local D Drive. It works for what we want.

     'Setup Unity3D Default Project Path to D: Drive'
     Dim uBinary
     uBinary = Array(68,58,00)
     WriteToRegistry HKEY_USERS, sTempHiveRef & "Software\Unity Technologies\Unity Editor 5.x", "kProjectBasePath_h4113231939", uBinary, "REG_BINARY"
     WriteToRegistry HKEY_USERS, sTempHiveRef & "Software\Unity Technologies\Unity Editor 5.x", "kWorkspacePath_h3086459462", uBinary, "REG_BINARY"
     

Apologies if my wording is not correct or if the code could be tidied up, but I havnt seen anywhere that has been able to achive this so am happy to share if it helps.

And sorry this markdown is a bit unruley to try and format my reply in a readable paragraph

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

28 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 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 avatar image avatar image

Related Questions

A node in a childnode? 1 Answer

Player damage stops working over time 0 Answers

Debug the Scene loading time? 0 Answers

MonoDevelop Resizing 1 Answer

What does "?" and ":" mean 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