WolframDatabin.ID()

string WolframDatabin.ID()

give the ID of a databin.

Details

  • WolframDatabin.ID() is a member function of the WolframDatabin class.
  • WolframDatabin.ID() is only available for use in Unity scripts.

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);
}
}