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 HellsHand · Mar 17, 2021 at 06:09 PM · windowedtitle

Start Fullscreen with title/quick launch bars still visible

When starting in Windowed mode you have access to the windows controls/title bar, clicking the Maximize button will Maximize the window while keeping the title bar at the top of the window and remain above the Quick Launch bar, this is exactly what I want. My problem is I can only seem to achieve this by physically clicking on the maximize button when in Windowed mode. Is there a way to achieve the same result with code/settings?.

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 HellsHand · Mar 22, 2021 at 05:45 PM 0
Share

So I've tried using this code:

 [DllImport("user32.dll")]
     private static extern bool ShowWindow(IntPtr hwnd, int nCmdShow);
 [DllImport("user32.dll")]
     private static extern IntPtr GetActiveWindow();
 
 void Start()
 {
     ShowWindow(GetActiveWindow(), 2)
 }

But again the Title Bar is removed and the window is covering the quick launch bar.

avatar image HellsHand · Mar 25, 2021 at 08:27 PM 0
Share

Is this just not possible or is it that nobody knows? 8 days without so much as a comment.

avatar image HellsHand · Mar 31, 2021 at 03:24 PM 0
Share

Why is this so difficult? 14 days without a word from the entire community? Really?1? NOBODY knows? If it can't be done that's fine, I'll deal with it, but without an answer I'm just clutching at straws here. I'm willing to even give up the title bar but I'd prefer the ability to switch screens without having to Alt-Tab through all my open windows.

1 Reply

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

Answer by HellsHand · Apr 05, 2021 at 08:10 PM

Not really what I was going for but I found a simple workaround to my problem. I created a shortcut for my .exe, right-clicked the shortcut, went to Properties, then set the Run property to Maximized. This does produce the exact result I'm going for, but I was really hoping to find a more elegant solution.

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 HellsHand · Apr 06, 2021 at 01:50 PM 0
Share

Well this does leave a weird double-image of the original window size over the Full window size until the mouse is hovered over the Title Bar.

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

112 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 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 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 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

Can we use "-popupwindow" command in linux and if yes how to use it? 0 Answers

screen tearing, on windowed mode, with VSync on 5 Answers

How can i change the title of the standalone player window? 4 Answers

Standalone fullscreen-fixed size 0 Answers

Windowed game not centered 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