C# Client  0.0.0.7
C# Library to interface with Corelink
MB_SenderStream.cs
Go to the documentation of this file.
1 using UnityEngine;
2 
3 namespace CoreLink
4 {
9  public class SenderStream : MonoBehaviour
10  {
11  public string workspace = "Holodeck";
12  public string type = "unity";
13  protected uint streamID;
14  protected Control control;
15  virtual public void Initialize(ref Control control)
16  {
17  this.control = control;
18  if (string.IsNullOrEmpty(this.workspace)) this.workspace = "Holodeck";
19  if (string.IsNullOrEmpty(this.type)) this.type = "unity";
20  streamID = control.createSender(new SenderStreamParams("Holodeck", "unity"));
21  }
22  }
23 }