Skip to content

Commit f305e14

Browse files
Add initialisationError property to UnityContext type for error handling
1 parent 03c40bd commit f305e14

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

module/source/types/unity-context.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ type UnityContext = {
1818
* Defines whether the Unity Instance has been loaded.
1919
*/
2020
readonly isLoaded: boolean;
21+
22+
/**
23+
* The Unity Instance's initialisation error, if any.
24+
*/
25+
readonly initialisationError?: Error;
2126
};
2227

2328
export type { UnityContext };

0 commit comments

Comments
 (0)