Struct DiagnosticEvent | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    Struct DiagnosticEvent

    Diagnostic event data.

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

    Constructors

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

    DiagnosticEvent constructor

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

    Graph id

    System.String parent

    Parent event id

    System.String id

    Event id

    System.Int32 stream

    Stream index

    System.Int32 frame

    Frame number

    System.Int32 value

    Event value

    System.Byte[] data

    Event data

    Properties

    Data

    Serialized data for the event. The contents depend on the event type

    Declaration
    public byte[] Data { get; }
    Property Value
    Type Description
    System.Byte[]

    Event data

    EventId

    The id of this event. Ids are used to combine multiple events into a single graph

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

    Event Id

    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

    Parent

    Optional id of the parent event. This is used to structure the tree view of the event viewer

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

    Parent Id

    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 © 2015-2018 Unity
    Generated by DocFX