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
9
Question by jiteshvm · Jul 26, 2011 at 06:53 PM · standalonewindows-standalonetitle

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

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

4 Replies

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

Answer by jiteshvm · Jul 26, 2011 at 08:56 PM

 //Import the following.
     [DllImport("user32.dll", EntryPoint = "SetWindowText")]
     public static extern bool SetWindowText(System.IntPtr hwnd, System.String lpString);
     [DllImport("user32.dll", EntryPoint = "FindWindow")]
     public static extern System.IntPtr FindWindow(System.String className, System.String windowName);
 //Get the window handle.
     windowPtr = FindWindow(null, "Old Window Title");
 //Set the title text using the window handle.
     SetWindowText(windowPtr, "New Window Title - Yayyy");
Comment
Add comment · Show 6 · 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 almo · Jul 26, 2011 at 08:59 PM 0
Share

That work on $$anonymous$$acintosh? :D

avatar image jiteshvm · Jul 26, 2011 at 09:04 PM 0
Share

no.just on windows :(

avatar image almo · Jul 26, 2011 at 09:07 PM 0
Share

Heh was just kidding. I know you can't get user32.dll on $$anonymous$$acs. :)

avatar image googler · May 07, 2013 at 07:53 AM 0
Share

How to change the title on the $$anonymous$$ac player?

avatar image TeeTeeHaa · Jul 23, 2018 at 07:46 AM 1
Share

Unfortunately this only changes the name of the first window found when searching for the old name - which not necessarily is the window of your stand-alone build.

To confirm this just create a text file called "Old Window Title.txt", open it with Notepad and afterwards run your stand-alone build. Now the window title of Notepad will be changed (at least it does so on my computer).

avatar image sonnyb TeeTeeHaa · Sep 26, 2018 at 06:55 PM 0
Share

That's a good point. Using GetActiveWindow rather than FindWindow seems to work and it doesn't rely on the name of the current window.

avatar image
8

Answer by uldall · Dec 12, 2012 at 08:48 AM

You can change it for cross platform here: Edit > Project Settings > Player > Product Name

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 Strangertoyourlife · Sep 19, 2018 at 11:37 AM

I was having trouble getting this to work. I did finally get this to work and it is great! Here is how I formatted it:

alt text


working-productname.png (28.2 kB)
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 Pranav1234 · Jul 28, 2021 at 04:29 PM

How do you change the color of the bar?

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

10 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

Related Questions

How to change the title of the standalone Mac player window after launch? 1 Answer

Windows Unity Aplicaction on Extend Screen 0 Answers

Window title on standalone says "Conform_Terrain". How do I change this? 1 Answer

Extra files after building? 0 Answers

Blue Screen On Windows Build 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