docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RuntimeGraphLogger

    A context to store and access logs provided to each nodes of a graph at runtime.

    Inheritance
    object
    GraphLogger
    RuntimeGraphLogger
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    GraphLogger.LogImportError(string, Object, int)

    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
    GraphLogger.LogImportWarning(string, Object, int)

    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.

    Overrides
    GraphLogger.RegisterAnalyticsData(string, object)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)