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

Fullscreen

Enables or disabled the fullscreen mode.

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