Class PlayerSessionRequests.SwapPlayerSessionMemberRequest
Swap a user to a player or spectator
Namespace: Unity.PSN.PS5.Sessions
Syntax
public class SwapPlayerSessionMemberRequest : Request
Properties
JoinAsSpectator
Swap the member to a spectator
Declaration
public bool JoinAsSpectator { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
SessionId
Session ID to join
Declaration
public string SessionId { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
UserId
User ID
Declaration
public int UserId { get; set; }
Property Value
| Type | Description |
|---|---|
| Int32 |
Methods
Run()
Declaration
protected override void Run()