Created a script to do the job that doesn’t need to be attached to a gameobject:
using UnityEditor; using UnityEngine; [InitializeOnLoad] static class FullscreenShortcut { static FullscreenShortcut() { EditorApplication.update += Update; } static void Update() { #if UNITY_EDITOR if (EditorApplication.isPlaying && ShouldToggleMaximize()) { EditorWindow.focusedWindow.maximized = !EditorWindow.focusedWindow.maximized; } #endif } private static bool ShouldToggleMaximize() { return Input.GetKey(KeyCode.Space) && Input.GetKey(KeyCode.LeftShift); } }
Related Posts:
- How to find child of a GameObject or the script attached to child GameObject via script
- Getting mouse position in unity
- How to make the script wait/sleep in a simple way in unity
- Unity OnTriggerEnter2D not registering
- OnCollisionEnter() not working in Unity3D
- Unity cannot convert from ‘string’ to ‘int’
- Can’t add script component because the script class cannot be found?
- Why should I use SerializeField?
- OnTriggerEnter not working at Unity3D
- How to jump in Unity 3d?
- Unity3d no Monobehaviour scripts in the file, or their names don’t match the file name
- Unity3d restart current scene
- How to move 2D Object with WASD in Unity
- The Object you want to instantiate is null. Unity 3D
- Unity 2d jumping script
- OnCollisionEnter2D not being executed?
- Unity “The associated script can not be loaded” and “Win32Exception: The system cannot find the file specified”
- Unity – Gameobject look at mouse
- Error when Building Project: Error building Player because scripts have compile errors in the editor
- Unity3D. Trying to send command for object without authority
- Expression denotes a `type’, where a `variable’, `value’ or `method group’ was expected UNITY3D
- How to pass data (and references) between scenes in Unity
- Rotate object in Unity 3D
- OnCollisionEnter is not called in unity
- Unity 5.2.2 changing Visual Studio back to MonoDevelop
- “A namespace cannot directly contain members such as fields or methods”
- Unity – How to stop Play Mode in case of infinite loop?
- Unity Scripts edited in Visual studio don’t provide autocomplete
- How to connect to database from Unity
- How do I generate a random int number?
- An existing connection was forcibly closed by the remote host
- Unexplained crashes related to ntdll.dll
- I am getting Failed to load resource: net::ERR_BLOCKED_BY_CLIENT with Google chrome
- What is parsing?
- How to fix “HTTP Error 400. The size of the request headers is too long” error from azure cloud services?
- Could not load file or assembly or one of its dependencies
- Adding values to a C# array
- How can I add ” character to a multi line string declaration in C#?
- Input string was not in a correct format
- The request was aborted: Could not create SSL/TLS secure channel
- Unable to connect to web server ‘IIS Express’
- Twilio TwilioRestClient does not contain a definition for SendSmsMessage
- How to convert byte array to string
- ASP.NET Core Dependency Injection error: Unable to resolve service for type while attempting to activate
- How to play an AnimationClip when key is pressed in Unity3d, C#?
- System.web.mvc missing
- Best way to generate a random float in C#
- Check if list is empty in C#
- What is clr.dll on .Net framework and what does it do?
- How can I secure passwords stored inside web.config?
- How to Use TextureBrush for painting an Image
- C# compiler error: “not all code paths return a value”
- How do I read and parse an XML file in C#?
- How to fix “namespace x already contains a definition for x” error? Happened after converting to VS2010
- How do I create a Shared Code project (.shproj)
- The calling thread cannot access this object because a different thread owns it
- Convert JSON String To C# Object
- How can I fix Visual Studio 2015 exception Microsoft.vshup.server.httphostx64.exe has stopped working when run project
- IEnumerable vs List – What to Use? How do they work?
- How to convert code from C# to PHP
- Index was out of range. Must be non-negative and less than the size of the collection parameter name:index
- Is dependency injection useful in C++
- Parse Json string in C#
- System.BadImageFormatException: Could not load file or assembly
- Could not load file or assembly ‘Microsoft.Web.Infrastructure,
- Where to place native DLL to use Pocket PC emulator?
- What is the purpose of the vshost.exe file?
- MSSQL Error ‘The underlying provider failed on Open’
- An object reference is required to access a non-static member
- Task vs Thread differences
- There is no ViewData item of type ‘IEnumerable
‘ that has the key country - C# – Rounding Down to Nearest Integer
- How to update the value stored in Dictionary in C#?
- How to write a comment in a Razor view?
- Finalize vs Dispose
- How to download a file from a URL in C#?
- WebException (Status: Protocol Error)
- How to add a new row to datagridview programmatically
- Unexpected character encountered while parsing value
- Embedded statement cannot be a declaration or labeled statement
- MailMessage.To.Add() throwing exception : “An invalid character was found in the mail header: ‘,’.”
- Remove duplicates from a List
in C# - How to deserialize xml to object [duplicate]
- How can we prepend strings with StringBuilder?
- C# conditional operator error Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement
- Cannot drop database because it is currently in use
- Troubleshooting “program does not contain a static ‘Main’ method” when it clearly does…?
- Using FolderBrowserDialog in WPF application
- How to make Check Box List in ASP.Net MVC
- Is there an equivalent to the C# “var” keyword in C++/CLI?
- The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required?
- Playing a MP3 file in a WinForm application
- The server tag is not well formed error
- Encrypt and decrypt a string in C#?
- Key Value Pair List
- Using .Select and .Where in a single LINQ statement
- How to resize an Image C#
- Unrecognized escape sequence for path string containing backslashes
- C# Dictionary get item by index
- A field initializer cannot reference the nonstatic field, method, or property