Skip to content

Instantly share code, notes, and snippets.

@fofopvz
fofopvz / gist:0a2d90a5e918ce94254757b6c3ad2c45
Created February 26, 2026 00:18
Unity 6 Fullscreen game window by deltacode1, edited the code since when I tried using it it gave me several invalid operation exception with the input class, here is an edited version of it, also made the toggle key F4
using System;
using System.Reflection;
using UnityEditor;
using UnityEngine;
using UnityEngine.InputSystem;
public class FullscreenHotkeyHandler : MonoBehaviour
{
bool makeFullscreenAtStart = true;