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.
25 lines • 931 B
TypeScript
import { UnityMetricsInfo } from "./unity-metrics-info";
import { UnityModule } from "./unity-module";
/**
* Type declaration for the UnityInstance.
*/
type UnityInstance = Pick<UnityModule, "SendMessage" | "SetFullscreen"> & {
/**
* Quits the Unity WebGL application and removes it from the memory.
* @returns a promise which resolves when the application did quit.
*/
readonly Quit: () => Promise<void>;
/**
* Returns the current system information of the UnityInstance.
* This is a more detailed version of the SystemInfo property in UnityModule.
* @returns the system information of the UnityInstance.
* @remark only available in Unity 6000.1 and later.
*/
readonly GetMetricsInfo?: () => UnityMetricsInfo;
/**
* The internal Unity Module.
*/
readonly Module: UnityModule;
};
export type { UnityInstance };
//# sourceMappingURL=unity-instance.d.ts.map