Struct DiagnosticEvent | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct DiagnosticEvent

    Diagnostic event data.

    Namespace: UnityEngine.ResourceManagement.Diagnostics
    Syntax
    [Serializable]
    public struct DiagnosticEvent

    Constructors

    DiagnosticEvent(String, String, Int32, Int32, Int32, Int32, Int32[])

    DiagnosticEvent constructor

    Declaration
    public DiagnosticEvent(string graph, string name, int id, int stream, int frame, int value, int[] deps)
    Parameters
    Type Name Description
    System.String graph

    Graph id.

    System.String name

    Event name.

    System.Int32 id

    Event id.

    System.Int32 stream

    Stream index.

    System.Int32 frame

    Frame number.

    System.Int32 value

    Event value.

    System.Int32[] deps

    Array of dependency event ids.

    Properties

    Dependencies

    Array of object identifiers that are dependencies for this event

    Declaration
    public int[] Dependencies { get; }
    Property Value
    Type Description
    System.Int32[]

    DisplayName

    Display name for event

    Declaration
    public string DisplayName { get; }
    Property Value
    Type Description
    System.String

    Frame

    The frame that the event occurred

    Declaration
    public int Frame { get; }
    Property Value
    Type Description
    System.Int32

    Frame number

    Graph

    Gets the graph id that this event is intended for

    Declaration
    public string Graph { get; }
    Property Value
    Type Description
    System.String

    The graph Id

    ObjectId

    Unique object identifier for this event

    Declaration
    public int ObjectId { get; }
    Property Value
    Type Description
    System.Int32

    Stream

    The stream id for the event. Each graph may display multiple streams of data for the same event Id

    Declaration
    public int Stream { get; }
    Property Value
    Type Description
    System.Int32

    Stream Id

    Value

    The value of the event. This value depends on the event type

    Declaration
    public int Value { get; }
    Property Value
    Type Description
    System.Int32

    Event value

    Methods

    Deserialize(Byte[])

    Deserializes event from a byte array created by the UnityEngine.ResourceManagement.Diagnostics.DiagnosticEvent.Serialize method

    Declaration
    public static DiagnosticEvent Deserialize(byte[] data)
    Parameters
    Type Name Description
    System.Byte[] data

    Serialized data

    Returns
    Type Description
    DiagnosticEvent

    Deserialized DiagnosticEvent struct

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023