Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 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
0
Question by TreborJones · Sep 20, 2016 at 09:32 AM · projectplatformopen

Open an exisiting project in desired platform

Hi there,

Just curious if anyone knows a solution to this. When I grab an exisiting project repository it always opens it as 'PC/Mac standalone' platform, it then does its asset converting magic. I then select the platform I actually want (iOs) and it converts again. Is there anyway to open the project in the desired platform in the first place?

Cheers,

Bob.

Comment
Add comment · Show 2
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 tanoshimi · Sep 20, 2016 at 09:35 AM 0
Share

You mean you're saving the project each time with iOS selected as the target platform, but every time you reopen it it's reset back to PC/$$anonymous$$ac standalone? That shouldn't happen.

avatar image TreborJones tanoshimi · Sep 20, 2016 at 10:11 AM 0
Share

Hi, no thats not whats happening, although this may just be a hole in my source control knowledge! :-)

I download the repo, then in unity hit open exisiting project, select the root of the project and it opens in standalone - as part of opening it converts all the assets to that platform.

I then have to switch in build settings to the platform I actually want to run the project in, this does the same conversion of assets process but for that plat form type. I'm just trying to find out if that two stage process is needed - or if I could open it in iOs in the first place.

When I grab a repository does or can it have a unity platform associated with it?

2 Replies

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

Answer by DiegoSLTS · Sep 20, 2016 at 12:24 PM

Check the Command line arguments: https://docs.unity3d.com/Manual/CommandLineArguments.html

You can open the project at a certain path with -projectPath and select a build Target with -buildTarget

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 TreborJones · Sep 20, 2016 at 12:59 PM 0
Share

Yep that's what I was after! Thanks. :-)

avatar image
0

Answer by TristanChambers · Oct 18, 2021 at 03:16 PM

Just to update this, you can now choose the target platform you want the project to launch with in the unity hub. Just change the "Current Platform" dropdown to your desired platform instead.


If you still need to do this via the command line, an easy way to do this is to locate your unity.exe, create a shortcut for it, and edit the shortcuts target to have your desired platform in the command line. Then run the shortcut. Otherwise, just enter the command in the command line or terminal.


For example, I set my shortcut's target to this:

 "C:\Program Files\Unity\Hub\Editor\2019.4.30f1\Editor\Unity.exe" -buildTarget StandaloneWindows64 -projectPath "D:\Projects\UnityProject\"

Note that I put quotes around the file paths in case there were spaces in them but they are not required if there are no spaces.


You can find the list of build targets here: https://docs.unity3d.com/ScriptReference/BuildTarget.html


Like @DiegoSLTS said, you can find other command line args here: https://docs.unity3d.com/Manual/CommandLineArguments.html

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

I have errors when i open a project (Unity 2018 3.2f1),When i open a project i have errors 0 Answers

Untangling two projects 1 Answer

Once upon a build... 1 Answer

When i open a project, its blank? (noob, sorry) 1 Answer

Open Multiple Unity Projects Simultaneously 12 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