Attached to player, collects player data every second and when instructed, data is compiled into json format
More...
Inherits MonoBehaviour.
|
IEnumerator | DataCollector () |
| Coroutine for data collection at specified interval Data Collected: Player coordinates/rotations/action state/object being interacted with/objects position/rotation - all collected with delegate More...
|
|
void | SceneJumpRecord (Scene scene, LoadSceneMode mode) |
| Adds scene changes with timestamp to sceneSwitches Dictionary More...
|
|
string | GetData () |
|
void | SendData () |
| Stops all coroutines, compiles the data that has been collecting into json formation and sends an external call to the browser with the final data in JSON. More...
|
|
void | BrowserToC () |
| ACCESS THIS FUNCTION FROM BROWSER. More...
|
|
Attached to player, collects player data every second and when instructed, data is compiled into json format
void Cyan.DataCollection.BrowserToC |
( |
| ) |
|
ACCESS THIS FUNCTION FROM BROWSER.
Calls the sendData Function.
IEnumerator Cyan.DataCollection.DataCollector |
( |
| ) |
|
Coroutine for data collection at specified interval Data Collected: Player coordinates/rotations/action state/object being interacted with/objects position/rotation - all collected with delegate
- Returns
- Appends to 6 data lists and also adds to recording time
string Cyan.DataCollection.GetData |
( |
| ) |
|
void Cyan.DataCollection.SceneJumpRecord |
( |
Scene |
scene, |
|
|
LoadSceneMode |
mode |
|
) |
| |
Adds scene changes with timestamp to sceneSwitches Dictionary
- Parameters
-
void Cyan.DataCollection.SendData |
( |
| ) |
|
Stops all coroutines, compiles the data that has been collecting into json formation and sends an external call to the browser with the final data in JSON.
Camera Cyan.DataCollection.playerCamera |
IList<float> Cyan.DataCollection.sceneSwitches = new List<float>() |
The documentation for this class was generated from the following file:
- C:/Users/3D Intern/Documents/CornellTech-Unity3D/Assets/Scripts/Data Collection/DataCollection.cs