Delegate NetworkTransform.OnClientRequestChangeDelegate
The handler delegate type that takes client requested changes and returns resulting changes handled by the server.
Namespace: Unity.Netcode.Components
Assembly: Unity.Netcode.Runtime.dll
Syntax
public delegate (Vector3 pos, Quaternion rotOut, Vector3 scale) NetworkTransform.OnClientRequestChangeDelegate(Vector3 pos, Quaternion rot, Vector3 scale)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector3 | pos | The position requested by the client. |
| Quaternion | rot | The rotation requested by the client. |
| Vector3 | scale | The scale requested by the client. |
Returns
| Type | Description |
|---|---|
| (Vector3 pos, Quaternion rotOut, Vector3 scale) | The resulting position, rotation and scale changes after handling. |