Is there way to make a separate splash screen window like photoshop has?
want to make a small popup window with an image on it, which will show up when user launches the game. It will load the main scene in the background and disappear(main scene window will appear accordingly).
Sort of like Maya or Photoshop does it.. Oh and it should work in runtime of course and should be cross-platform, Win & Mac in particular.
I've found a "draggable resizable window" in asset store which provides kinda similar functionality but it uses user32.dll thus works on Windows only.
Any help is greatly appreciated. Thanks!
p.s. another bonus would be to have a custom shaped window based on Splash image alpha. For example a star shape or any custom shape.
Answer by Creeper_Math · Jan 17, 2017 at 07:07 PM
Maybe make the first scene change the resolution of the screen to a smaller resolution (with your splash screen) and once it finishes that it just sets it back to the original resolution
You can get and set the resolutions by using
// Get the Resoltion
Screen.currentResolution;
// Put the current resolution into a vector2
Vector2 Resolution = new Vector2(Screen.currentResolution.width, Screen.currentResolution.height);
// Set the Resolution
Screen.SetResolution();
// Using a vector2 to set a new resolution
Vector2 Resolution = new Vector2(*Width*,*Height*);
Screen.SetResolution(Resolution.x, Resolution.y, false);
// Last "False" is for fullscreen, so if you do want fullscreen then just set that to true
Answer by PendingFox · Jan 17, 2017 at 08:47 PM
@Creeper_Math thanks for your reply :)
The problem is that I need a borderless window at launch. I can pass the -popupwindow parameter manually from shortcut properties or terminal but that's kinda dirty. I also want it to have a custom shape nut just a square one(based on textures alpha).
As for the rest it should be quite simple; I'll just load the main game scene in the background (ala Application.LoadLevelAsync(id); ) and wait for a callback.
Your answer
![](https://koobas.hobune.stream/wayback/20220612105008im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Splash screen not working 1 Answer
Problem with black Splash on iOS 0 Answers
custom android unity splash screen? 0 Answers
Removing Unity Splash Screen with Unity Pro Doesn't Work? 0 Answers
Animated logo splash screen 0 Answers