Class EventDataPlayerSessionCollection
Inheritance
System.Object
EventDataPlayerSessionCollection
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: UnityEditor.ResourceManagement.Diagnostics
Syntax
public class EventDataPlayerSessionCollection
Constructors
EventDataPlayerSessionCollection(Action<EventDataPlayerSession, DiagnosticEvent, Boolean>, Func<DiagnosticEvent, Boolean>)
Declaration
public EventDataPlayerSessionCollection(Action<EventDataPlayerSession, DiagnosticEvent, bool> onEvent, Func<DiagnosticEvent, bool> onRecordEvent)
Parameters
| Type | Name | Description |
|---|---|---|
| Action<EventDataPlayerSession, DiagnosticEvent, System.Boolean> | onEvent | |
| Func<DiagnosticEvent, System.Boolean> | onRecordEvent |
Methods
AddSession(String, Int32)
Declaration
public void AddSession(string name, int id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | |
| System.Int32 | id |
GetConnectionNames()
Declaration
public string[] GetConnectionNames()
Returns
| Type | Description |
|---|---|
| System.String[] |
GetPlayerSession(Int32, Boolean)
Declaration
public EventDataPlayerSession GetPlayerSession(int playerId, bool create)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | playerId | |
| System.Boolean | create |
Returns
| Type | Description |
|---|---|
| EventDataPlayerSession |
GetSessionByIndex(Int32)
Declaration
public EventDataPlayerSession GetSessionByIndex(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Returns
| Type | Description |
|---|---|
| EventDataPlayerSession |
ProcessEvent(DiagnosticEvent, Int32)
Declaration
public void ProcessEvent(DiagnosticEvent diagnosticEvent, int sessionId)
Parameters
| Type | Name | Description |
|---|---|---|
| DiagnosticEvent | diagnosticEvent | |
| System.Int32 | sessionId |