react-unity-webgl
Version:
React Unity WebGL provides a modern solution for embedding Unity WebGL builds in your React Application while providing advanced APIs for two way communication and interaction between Unity and React.
10 lines • 464 B
TypeScript
/**
* Generates a unique Unity canvas ID. This is used internally by Unity since
* version 2021.2 to identify the canvas element in the DOM. This is not
* documented in the Unity documentation, but it is used in the Unity source
* code.
* @returns A unique identifier for a Unity canvas element.
*/
declare const useCanvasIdentifier: (id?: string) => [string, VoidFunction];
export { useCanvasIdentifier };
//# sourceMappingURL=use-canvas-identifier.d.ts.map