diff --git a/Event Logger/PositionRotationLogger.cs b/Event Logger/PositionRotationLogger.cs index b518fe9c1b1ce501796103aeec82b8a88414ad0f..a9184553ee1f754585f311f1e7dce0520b0acb87 100644 --- a/Event Logger/PositionRotationLogger.cs +++ b/Event Logger/PositionRotationLogger.cs @@ -5,12 +5,14 @@ namespace Shared.EventLog { public class PositionRotationLogger : IntervalEventLogger { [Tooltip("Transform to log position and rotation for")] public Transform transformToLog; + [Tooltip("The prefix for the event log key for our events")] + public string eventLogKeyPrefix = "Player"; //--------------------------------------------------------------------------- // Add the Transform's position and rotation to the event log protected override void LogEvent() { - eventLog.Add("Player Position", "\"" + transformToLog.position.ToString() + "\""); - eventLog.Add("Player Rotation", "\"" + transformToLog.rotation.eulerAngles.ToString() + "\""); + eventLog.Add($"{eventLogKeyPrefix} Position", "\"" + transformToLog.position.ToString() + "\""); + eventLog.Add($"{eventLogKeyPrefix} Rotation", "\"" + transformToLog.rotation.eulerAngles.ToString() + "\""); } } } diff --git a/package.json b/package.json index b777a4a25d4af5a8acd13ed8d4794a4470b5c446..5d327c23cbb885fbfac54f066cd260646a1beeb0 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "com.futuretech.shared", "displayName": "FutureTech Shared", "description": "Contains shared items such as the Scriptable Variables.", - "version": "0.1.25", + "version": "0.1.26", "unity": "2019.3", "license": "MIT", "repository": {