UNPKG

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 424 B
import { UnityConfig } from "../types/unity-config"; import { UnityContextHook } from "../types/unity-context-hook"; /** * Creates a Unity Context hook. * @param unityConfig The Unity Config on which the Unity Context is based. * @returns The Unity Context hook. */ declare const useUnityContext: (unityConfig: UnityConfig) => UnityContextHook; export { useUnityContext }; //# sourceMappingURL=use-unity-context.d.ts.map