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 onlysoda · Jan 21, 2014 at 11:57 PM · errorpath

I Have a problem. The Log is 'Couldn't set project path to: C\....'

alt text I have a problem. I loaded sample things(RenderingPluginExample42, SimplestPluginExample). But those have a issue. The Log dialog(Console) show me 'Couldn't set project path to: C:\...'.

What is this problem. I need your help. Thanks.

1111.png (24.4 kB)
Comment
Add comment · Show 8
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 VildNinja · Jan 22, 2014 at 12:11 AM 0
Share

probably a write error. $$anonymous$$ight be some permission. Is the project placed in dropbox/google drive or something similar? also could you provide the rest of the file path?

avatar image KellyThomas · Jan 22, 2014 at 12:13 AM 0
Share

This is probably just a typo but the question title says:

 Couldn't set project path to: C\

Is the error really:

 Couldn't set project path to: C:\

i.e. are you missing a colon?

avatar image nesis · Jan 22, 2014 at 12:18 AM 0
Share

It might be one of a few things: - you're not running Unity3D with ad$$anonymous$$istrator priveledges - the given path doesn't exist on your computer (eg you don't have C:\ as the drive you have windows installed on)

avatar image onlysoda · Jan 22, 2014 at 04:14 AM 0
Share

Actually I used one of path under desktop folder. So, I think I don't need any permission. So, What's my problem. Help again plz.

Exact Error message : Couldn't set project path to: C:\\Users\\User01\\Desktop\\Simplest\\Plugin\\Example\\Unity Project\\ Plugin\\Assets

avatar image nesis · Jan 22, 2014 at 04:20 AM 0
Share

The code isn't using a valid path, it's as simple as that.

The error message indicates you don't have /s in the path. Add them like you'd see in Windows Explorer.

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
5

Answer by Graham-Dunnett · Apr 27, 2014 at 04:50 PM

This message is only generated when you use the -projectPath command line argument. Unity will tell you if the file path that is given does not represent a Unity project. A Unity project is the folder that contains the Library and Assets folder. The OP has given a path that includes Assets so is one folder too deep.

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 maximus9600 · Jun 25, 2014 at 05:11 AM 0
Share

Does this problem affect the working of the project by any chance?

avatar image
5

Answer by neildixley · Aug 07, 2015 at 04:11 PM

I have had this same problem for a few days. I was running the unity in command mode from a bash script and it would fail with the same error. It turned out that the command line option works a little oddly as I found out. From a Terminal window the following works just fine:

/Applications/Unity/Unity.app -batchmode -projectPath /Users/you/pathtoproject -quit

However this exact same command line fails when inside a bash script with the error 'Cannot set project path to /Users/you/pathtoproject' You need to format the option -projectPath=/Users/you/pathtoproject with an equals sign between -projectPath and the path rather than a space as indicated in the documentation.

Hope this helps if you get stuck when automating builds

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 jdecker22 · Jun 06, 2016 at 02:09 PM 0
Share

This was exactly my problem, didn't realize I needed an equal sign since the doc page didn't mention it.

I have a bunch of projects setup to auto build exactly the same way on a Jenkins server and I ran into an issue where the last project that was manually opened in Unity was being built ins$$anonymous$$d of the project associated with the Jenkins Job.

So I updated my build parameters to look like this: BUILD_PARA$$anonymous$$S="-quit -buildTarget ios -batchmode -projectPath='./' -execute$$anonymous$$ethod Project.Autobuild."$BUILD_FUNC

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

27 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

Related Questions

"Failed to import package" when creating new project 5 Answers

How to animate a moving platform GameObject? 2 Answers

Unity 5.4.2.f2 new ERROR msg - A passive NavMeshAgent is expected to have no path. But this one has 2 polygons 2 Answers

Path error? 0 Answers

Path drawing script giving error 0 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