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 /
This question was closed Jul 20, 2014 at 03:28 PM by z3nth10n for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by z3nth10n · Dec 29, 2013 at 02:44 PM · startwindowcustomdialog

Custom Resolution Dialog at Start?

Hi,

well I know this question is already asked... So I will try to change it a little bit...

Well I will try to make a custom Launcher, but I want to know which parameters are introduced into the program when we press the button play of that dialog...

I mean that button:

Play button is focused

Maybe it opens like: OurGame.exe res windowed? (Ourgame.exe 1280x1024 0/1 (0 for Windowed and 1 for Fullscreen) ??

How can I know the parameters? Are they in the Wiki?


I found how to insert our own parameters: http://answers.unity3d.com/questions/366195/parameters-at-startup.html

But maybe the parameters that I'm searching is in Unity API?? And I can't know them??


Well I find that: http://docs.unity3d.com/Documentation/Manual/CommandLineArguments.html

It can be useful for future askers... :P

Thanks in advance. Bye.

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

1 Reply

  • Sort: 
avatar image
1
Best Answer

Answer by z3nth10n · Dec 29, 2013 at 05:22 PM

I will answer my own question, I can know the parameters at startup doing that:

     static string cmdInfo = "";
  
     void Start () 
     {
        string[] arguments = Environment.GetCommandLineArgs();
        foreach(string arg in arguments)
        {
          cmdInfo += arg.ToString() + "\n ";
        }
     }
  
     void OnGUI()
     {
        Rect r = new Rect(5,5, 800, 500);
        GUI.Label(r, cmdInfo);
     }

But Custom Resolution Dialog doesn't have any custom parameter... so... I have made a Launcher for that...

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 AR_Rizvi · May 09, 2016 at 07:48 AM 0
Share

I know this post is to old and sorry to bring it up But i realy want some help on how to make custom dialog box on startup and how can i Start Working on it or how its done ??

Plzz help would be much Appreciated

Follow this Question

Answers Answers and Comments

19 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

Related Questions

Call inspector on custom window editor 4 Answers

Can a GameObject's full inspector be drawn in a custom Editor Window ? 1 Answer

Why does SaveFileDialog minimizes fullscreen window? 1 Answer

Editor Window with List input of Texture2D 0 Answers

Initialising List array for use in a custom Editor 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