Skip to content

Commit 5b549a0

Browse files
authored
readme fixup
1 parent d46c859 commit 5b549a0

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

README-Unity.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ LSL.cs includes a Unity interface to liblsl as a [Unity native plug-in](https://
1313
* Set the platforms for the plug-in. [See here](https://docs.unity3d.com/Manual/PluginsForDesktop.html).
1414
1. In Unity, use the menu to place a cube in the scene: GameObject > 3D Object > Cube
1515

16-
### Control a game object from an inlett
16+
### Control a game object from an inlet
1717

1818
1. When the cube is selected, in the Inspector click on "Add Component", and create a new script called LSLInput.
1919
1. In the Project viewer, double click on LSLInput.cs. This should launch Visual Studio or another IDE.
2020
1. Fill in the script. Use [LSL4Unity AInlet](https://github.com/labstreaminglayer/LSL4Unity/blob/master/Scripts/AInlet.cs) for inspiration.
21-
* There is [currently a bug]() that prevents liblsl in Unity from resolving streams from _other_ computers while running in editor, and also the built product but only when using ContinuousResolver. For this reason we recommend using liblsl.resolve_stream instead.
22-
```cs
21+
* There is [currently a bug](https://github.com/sccn/liblsl/issues/29) that prevents liblsl in Unity from resolving streams from _other_ computers while running in editor, and also the built product but only when using `ContinuousResolver`. For this reason we recommend using `liblsl.resolve_stream` instead.
22+
23+
```cs
2324
using System.Collections;
2425
using System.Collections.Generic;
2526
using UnityEngine;
@@ -68,7 +69,7 @@ public class LSLInput : MonoBehaviour
6869
}
6970
}
7071

71-
```
72+
```
7273
1. Elsewhere, run one of the LSL outlet examples. For example, from a conda environment with pylsl installed: `python -m pylsl.examples.SendData`
7374
1. Run the Unity game and watch that cube shake!
7475

0 commit comments

Comments
 (0)