Commit 2c8b8ec
committed
fix(SimpleWeb.jslib): Remove Runtime from global scope
In unity 2021 LTS or later, Runtime is not defined by Unity, so a fix was to define it ourselves, but the code was defining it in global scope, so if a 2nd unity webgl instance is created then it would use the Runtime variable from the first one, which caused various errors.
Dropping support for older unity versions means we can go back to using dynCall directly instead of calling via Runtime.dynCall1 parent 3e61f5f commit 2c8b8ec
File tree
1 file changed
+4
-12
lines changed- Assets/Mirror/Transports/SimpleWeb/SimpleWeb/Client/Webgl/plugin
1 file changed
+4
-12
lines changedLines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 34 | | |
43 | 35 | | |
44 | 36 | | |
| |||
52 | 44 | | |
53 | 45 | | |
54 | 46 | | |
55 | | - | |
| 47 | + | |
56 | 48 | | |
57 | 49 | | |
58 | 50 | | |
59 | 51 | | |
60 | 52 | | |
61 | | - | |
| 53 | + | |
62 | 54 | | |
63 | 55 | | |
64 | 56 | | |
| |||
71 | 63 | | |
72 | 64 | | |
73 | 65 | | |
74 | | - | |
| 66 | + | |
75 | 67 | | |
76 | 68 | | |
77 | 69 | | |
| |||
83 | 75 | | |
84 | 76 | | |
85 | 77 | | |
86 | | - | |
| 78 | + | |
87 | 79 | | |
88 | 80 | | |
89 | 81 | | |
| |||
0 commit comments