Class Manager
The primary manager class for the SDK. Responsible for tracking data produced, uploading it, and waiting for it to complete.
Inherited Members
Namespace: Unity.Simulation
Assembly: solution.dll
Syntax
public sealed class Manager
Fields
| Name | Description |
|---|---|
| ShutdownNotification | Delegate which is called when the SDK is shutting down. |
| StartNotification | Delegate which is called when the SDK starts. |
| Tick | Delegate for receiving per frame ticks. |
Properties
| Name | Description |
|---|---|
| FinalUploadsDone | Returns a boolean indicating if all uploads to the cloud storage are done. |
| Instance | Singleton accessor. |
| ProfilerEnabled | Accessor to enable/disable the profiler. |
| ProfilerPath | Returns the path to the profiler log. |
| SimulationElapsedTime | Returns Simulation time elapsed in seconds. |
| SimulationElapsedTimeUnscaled | Returns unscaled simulation time in seconds. |
| WallElapsedTime | Returns Wall time elapsed in seconds. |
| requestPoolCount | Returns AsyncRequests pool count. |
Methods
| Name | Description |
|---|---|
| ConsumerFileProduced(string, bool, bool) | Inform the manager that file is produced and is ready for upload. |
| CreateRequest<T>() | Create an instance of an AsyncRequest. |
| GetDirectoryFor(string, string) | |
| QueueEndOfFrameItem(Action<object>, object) | Queues an action/callback to be executed at the end of the frame. |
| QueueForMainThread(Action) | Queues an action to be executed at the beginning of the next update. This is preferred to the QueueEndOfFrameItem, which will be deprecated in the future. |
| RecycleRequest<T>(T) | Recycle the async request and put it back in the pool. |
| RegisterDataConsumer(IDataProduced) | Register a consumer for the data being generated. |
| Shutdown() | Begins shutting down the SDK. Shutdown will last until all uploads or any other consumption has completed. |
| UnregisterDataConsumer(IDataProduced) | Remove the consumer from the list of consumers |
| UploadTracesFromPreviousRun(string) | Upload the data from the previous run. |