docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GraphLogger

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

    Inheritance
    object
    GraphLogger
    EditorGraphLogger
    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 abstract class 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 abstract 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.

    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 abstract 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.

    RegisterAnalyticsData(string, object)

    Register analytics data during import.

    Declaration
    public abstract 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.

    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)