Struct ResourceManager.DiagnosticEventContext
Container for information associated with a Diagnostics event.
Namespace: UnityEngine.ResourceManagement
Syntax
public struct DiagnosticEventContext
Constructors
DiagnosticEventContext(AsyncOperationHandle, ResourceManager.DiagnosticEventType, Int32, String, Object)
Construct a new DiagnosticEventContext.
Declaration
public DiagnosticEventContext(AsyncOperationHandle op, ResourceManager.DiagnosticEventType type, int eventValue = 0, string error = null, object context = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AsyncOperationHandle | op | Operation handle for the event. |
| ResourceManager.DiagnosticEventType | type | The type of diagnostic event. |
| Int32 | eventValue | The value for this event. |
| String | error | Any error that occured. |
| Object | context | Additional context data. |
Properties
Context
Addition data included with this event.
Declaration
public object Context { get; }
Property Value
| Type | Description |
|---|---|
| Object |
Error
Any error that occured.
Declaration
public string Error { get; }
Property Value
| Type | Description |
|---|---|
| String |
EventValue
The value for this event.
Declaration
public int EventValue { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Location
The IResourceLocation being provided by the operation triggering this event. This value is null if the event is not while providing a resource.
Declaration
public IResourceLocation Location { get; }
Property Value
| Type | Description |
|---|---|
| IResourceLocation |
OperationHandle
Operation handle for the event.
Declaration
public AsyncOperationHandle OperationHandle { get; }
Property Value
| Type | Description |
|---|---|
| AsyncOperationHandle |
Type
The type of diagnostic event.
Declaration
public ResourceManager.DiagnosticEventType Type { get; }
Property Value
| Type | Description |
|---|---|
| ResourceManager.DiagnosticEventType |