Our new developer documentation is now available. Please check it out!
Room.SetPosition
public virtual Task<RpcResult> SetPosition(float x = 0F, float y = 0F)
Set the spatial position for server side culling. Other remote peers outside the boundary will appear as not in the room or leaving the room.
Info
Be aware that the task is created for resolving Msgpack request/response result as Room. Unless handled correctly should not be awaited by the corresponding context.
Parameters
Name | Type | Description |
---|---|---|
x | Single | X of vector |
y | Single | Y of vector |
Returns
Type | Description |
---|---|
Task<RpcResult> | Thunk task that will not run (see |