WolframDatabin()

class WolframDatabin()

is a class that is used for accessing a databin.

Details

  • WolframDatabin() is only available for use in Unity scripts.
  • Possible member functions of WolframDatabin class include:
  • IDgive the ID of the databin
    Addadd data to the databin

Examples

Basic Examples  (1)

Log the session start time:

using UnityEngine;

public class demo : MonoBehaviour {

    public WolframDatabin databin;
    public string databinID;

    void Start() {
        databin.ID = databinID;
}

    void Awake() {
        Dictionary<string, string> data = new Dictionary<string, string>() {
            {"Log", "SessionStart"},
            {"Time", sessionStartTime.ToString()}
        }
        databin.Add(data);
}
}