Class RuntimeGraphLogger
A context to store and access logs provided to each nodes of a graph at runtime.
Inherited Members
Namespace: UnityEngine .Importer
Assembly: Unity.Importer.dll
Syntax
public class RuntimeGraphLogger : GraphLogger
Methods
LogImportError(string, Object, int)
Logs import error. The error id would be accumulated if the error id is registered for analytics. The accumulated error ids and their counts during an import can be retrieved with GetErrorsForAnalytics.
Declaration
public override void LogImportError(string errorMessage, Object obj = null, int errorId = -1)
Parameters
Type | Name | Description |
---|---|---|
string | errorMessage | The error message. |
Object | obj | Optional Object that is targeted by the error. |
int | errorId | The internal error id used for analytics. |
Overrides
LogImportWarning(string, Object, int)
Logs import warning. The warning id would be accumulated if the warning id is registered for analytics. The accumulated warning ids and their counts during an import can be retrieved with GetWarningsForAnalytics.
Declaration
public override void LogImportWarning(string warningMessage, Object obj = null, int warningId = -1)
Parameters
Type | Name | Description |
---|---|---|
string | warningMessage | The warning message. |
Object | obj | Optional Object that is targeted by the warning. |
int | warningId | The internal warning id used for analytics. |
Overrides
RegisterAnalyticsData(string, object)
Register analytics data during import.
Declaration
public override void RegisterAnalyticsData(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key of the analytics data. |
object | value | The value of the analytics data. |