You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-5Lines changed: 32 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,15 @@
1
1
Meteor-Unity
2
2
============
3
3
4
-
**Download Version 3.1:**http://hiddenswitch.github.io/Meteor-Unity/Meteor-Unity_v3.1.unitypackage.
4
+
**Download Version 3.2:**http://hiddenswitch.github.io/Meteor-Unity/Meteor-Unity_v3.2.unitypackage.
5
5
6
-
A Unity SDK for Meteor. Tested with Unity3D 5.3.2p2, Meteor's Galaxy hosting and Modulus hosting on iOS 9.2 and 9.3 64bit platforms. See the [Documentation](http://hiddenswitch.github.io/Meteor-Unity/annotated.html).
6
+
A Unity SDK for Meteor. Tested with Unity3D 2018.3.2f1 on il2cpp platforms. See the [Documentation](http://hiddenswitch.github.io/Meteor-Unity/annotated.html).
7
7
8
8
This release supports `il2cpp` backends, allowing it to be used in production for iOS builds. iOS, Android and desktop platforms are supported. WebGL is not supported.
9
9
10
10
See the example code at the bottom of the Readme for an overview of all the supported features. Wherever possible, the API matches the Meteor API, and the details match Meteor details. There is an exception to how things usually work in Meteor:
11
11
12
-
- In Meteor, disconnecting and reconnecting triggers a removal of all records and adding of all new records, as though a subscription was torn down and recreated. In Meteor-Unity, disconnecting does not result in removing records, while reconnecting will result in add messages / added called in observe handles.
13
-
14
-
Compared to Meteor, Meteor-Unity has some limitations. It cannot simulate code yet, so database side effects must come from the server. It cannot handle documents that aren't explicitly typed.
12
+
Compared to Meteor, Meteor-Unity has some limitations. It cannot simulate code yet, so database side effects must come from the server. It also cannot handle documents that are not explicitly typed.
15
13
16
14
##### Tips
17
15
@@ -93,3 +91,32 @@ Compared to Meteor, Meteor-Unity has some limitations. It cannot simulate code y
93
91
public int intField;
94
92
}
95
93
```
94
+
95
+
To use the above example, include the following file in the `server/` directory in your Meteor project:
96
+
97
+
```js
98
+
let collection = new Mongo.Collection('collectionName', {connection: null});
99
+
Meteor.publish('subscriptionEndpointName', function (number1, number2, number3) {
0 commit comments