Skip to main content
Version: Version 6 (Maintenance LTS)

Fullscreen

Enables or disabled the fullscreen mode.

import { SetFullscreen } from "react-unity-webgl";
SetFullscreen(true); // enabled fullscreen
SetFullscreen(false); // disables fullscreen