VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Classes | Public Types | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
AVR.Core.AVR_Logger Class Reference

Generic datalogger that logs any given variables or object properties in a csv-like format. More...

Inheritance diagram for AVR.Core.AVR_Logger:
AVR.Core.AVR_Behaviour

Classes

class  DataSource
 

Public Types

enum  deltaTypes { deltaTypes.ON_UPDATE, deltaTypes.ON_FIXEDUPDATE, deltaTypes.ON_LATEUPDATE, deltaTypes.CUSTOM }
 

Public Member Functions

override void OnDestroy ()
 
void logObjects ()
 

Public Attributes

string filepath = "logs/sample.log"
 
string delimeter = ";"
 
bool manualLog = false
 
deltaTypes deltaType
 
float delta = 0.05f
 
List< DataSourcecolumns = new List<DataSource>()
 

Private Member Functions

void Update ()
 
void FixedUpdate ()
 
void LateUpdate ()
 
void Start ()
 
void init ()
 
string getData (DataSource src)
 
object getPropertyValue (object target, string field)
 

Private Attributes

float stime = 0.0f
 
StreamWriter file
 

Additional Inherited Members

- Protected Attributes inherited from AVR.Core.AVR_Behaviour
AVR_PlayerRig playerRig => AVR_PlayerRig.Instance
 The current AVR_PlayerRig instance in the scene More...
 
AVR_Root root => AVR_Root.Instance
 The current AVR_Root instance in the scene More...
 
bool vrEnabled => UnityEngine.XR.XRSettings.enabled
 True if the application is running as a VR/XR application More...
 

Detailed Description

Generic datalogger that logs any given variables or object properties in a csv-like format.

Definition at line 17 of file AVR_Logger.cs.