Delegate NetworkManager.ConnectionApprovedDelegate
Delegate type called when connection has been approved. This only has to be set on the server.
Namespace: MLAPI
Assembly: Unity.Multiplayer.MLAPI.Runtime.dll
Syntax
public delegate void NetworkManager.ConnectionApprovedDelegate(bool createPlayerObject, ulong? playerPrefabHash, bool approved, Vector3? position, Quaternion? rotation)
Parameters
Type | Name | Description |
---|---|---|
bool | createPlayerObject | If true, a player object will be created. Otherwise the client will have no object. |
ulong? | playerPrefabHash | The prefabHash to use for the client. If createPlayerObject is false, this is ignored. If playerPrefabHash is null, the default player prefab is used. |
bool | approved | Whether or not the client was approved |
Vector3? | position | The position to spawn the client at. If null, the prefab position is used. |
Quaternion? | rotation | The rotation to spawn the client with. If null, the prefab position is used. |