Class CurrentPlayer
Utility class to access information about the multiplayer play mode player while in playmode.
Inherited Members
Namespace: Unity.Multiplayer.Playmode
Assembly: Unity.Multiplayer.Playmode.dll
Syntax
public static class CurrentPlayer
Methods
ReadOnlyTags()
Returns the tag(s) assigned to the currently running player.
Declaration
public static string[] ReadOnlyTags()
Returns
| Type | Description |
|---|---|
| string[] |
ReportResult(bool, string, string, int)
This allows for asserting on the main editor from any Player (Useful for Runtime tests involving MonoBehaviour)
Declaration
public static void ReportResult(bool condition, string message = "", string callingFilePath = "", int lineNumber = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | condition | |
| string | message | |
| string | callingFilePath | |
| int | lineNumber |