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.
11 lines • 537 B
TypeScript
import { UnityConfig } from "../types/unity-config";
import { UnityContext } from "../types/unity-context";
/**
* Custom hook to create a Unity context.
* This hook initializes the Unity instance and provides the necessary state and methods.
* @param unityConfig - Configuration object for the Unity instance.
* @returns An object containing the Unity context state and methods.
*/
declare const useUnityContext: (unityConfig: UnityConfig) => UnityContext;
export { useUnityContext };
//# sourceMappingURL=use-unity-context.d.ts.map