Delegate NetworkTransform.MoveValidationDelegate
The delegate used to check if a move is valid
Namespace: MLAPI.Prototyping
Assembly: Unity.Multiplayer.MLAPI.Prototyping.dll
Syntax
public delegate bool NetworkTransform.MoveValidationDelegate(ulong clientId, Vector3 oldPos, Vector3 newPos)
Parameters
Type | Name | Description |
---|---|---|
ulong | clientId | The client id the move is being validated for |
Vector3 | oldPos | The previous position |
Vector3 | newPos | The new requested position |
Returns
Type | Description |
---|---|
bool | Returns Whether or not the move is valid |