-
Notifications
You must be signed in to change notification settings - Fork 1
Logger
ArvickC edited this page Jul 27, 2024
·
1 revision
Logger Class
The Logger
class manages logging data within a simulation. Adding this component to a controller is all you need to do. It contains a couple of core features.
(1), The Logger
can end the simulation after a certain amount of episodes. You can declare this amount in the Unity GUI.
(2), The Logger
can adjust the time scale of the simulation, allowing you to run simulations sped up or slowed down.
(3), The Logger
can save logs to a file, in your custom format. You can define the path to save the file and the naming conventions within the Unity GUI.
To use the Logger
, add the component to your Controller
gameobject. You can modify the output of the Logger
by overriding the Log()
function in your custom Controller
class.