This refactors LSL4Unity as a Unity Custom Package that can be installed using the Editor's integrated package manager.
Once the package is installed, it is also possible to install "Samples". Here we provide 3 samples. The first 2 are simple examples of an inlet and an outlet using only LSL.cs. The third is a slightly more complicated yet robust (functionally) example that leverages the Utilities provided in the LSL4Unity namespace.
Here are some issues encountered (and solved):
[x] Objects in Samples are missing scripts. The solution is to completely replace existing Samples with new ones.
[x] There are some namespace clashes. StreamInfo was one, but I patched this.
[x] We have both Resolver and LSLResolver. They are almost identical. These need to be merged.
[x] Any event streams need to have their default types set to Markers so they can be auto-imported in EEGLAB (to make it easier for users)
[x] Build testing -- Does it pull in the lsl.dll? (I deleted the BuildHooks, might need to bring those back)
[ ] Check resolver on streams from other computers (see #30)
Everything is working well in the editor. I need to test the builds. If anyone is interested in helping test (especially on Android) then please jump in.
This refactors LSL4Unity as a Unity Custom Package that can be installed using the Editor's integrated package manager.
Once the package is installed, it is also possible to install "Samples". Here we provide 3 samples. The first 2 are simple examples of an inlet and an outlet using only LSL.cs. The third is a slightly more complicated yet robust (functionally) example that leverages the Utilities provided in the LSL4Unity namespace.
Here are some issues encountered (and solved):
Markers
so they can be auto-imported in EEGLAB (to make it easier for users)