File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 1
1
mergeInto ( LibraryManager . library , {
2
2
3
3
DDB_Setup : function ( region , identityPool , callbackGameObjectName ) {
4
+
5
+ if ( typeof unityInstance == "undefined" ) {
6
+ throw "Cannot find unityInstance. Make sure you are using the UXF WebGL template."
7
+ }
8
+
4
9
AWS . config . region = Pointer_stringify ( region ) ;
5
10
AWS . config . credentials = new AWS . CognitoIdentityCredentials ( {
6
11
IdentityPoolId : Pointer_stringify ( identityPool ) ,
Original file line number Diff line number Diff line change @@ -119,6 +119,26 @@ public void OnGUI()
119
119
}
120
120
}
121
121
122
+
123
+ EditorGUILayout . Separator ( ) ;
124
+
125
+ GUILayout . Label ( "WebGL" , EditorStyles . boldLabel ) ;
126
+
127
+ if ( PlayerSettings . WebGL . template == "PROJECT:UXF WebGL" )
128
+ {
129
+ EditorGUILayout . HelpBox ( "UXF WebGL template is set correctly." , MessageType . Info ) ;
130
+ }
131
+ else
132
+ {
133
+ EditorGUILayout . HelpBox ( "UXF WebGL template is not selected as the WebGL Template in Player Settings." , MessageType . Warning ) ;
134
+ if ( GUILayout . Button ( "Fix" ) )
135
+ {
136
+ PlayerSettings . WebGL . template = "PROJECT:UXF WebGL" ;
137
+ }
138
+ }
139
+
140
+
141
+
122
142
EditorGUILayout . Separator ( ) ;
123
143
EditorGUILayout . HelpBox ( "To show this window again go to UXF -> Show setup wizard in the menubar." , MessageType . None ) ;
124
144
You can’t perform that action at this time.
0 commit comments