Skip to main content
namespace ML.SDK
Class | Static

MassiveLoopRoom


namespace ML.SDK
{
static class MassiveLoopRoom
}

Summary

Manage and access information about current room. Each session of an SDK world is called Room.The players belonging to the same room, can see each other, hear each other, and synchronously effected by the events happening in the said room.

Properties

PropertyDesciption
PlayerCountNumber of players in current room.

Static Methods

MethodDescription
FindPlayerByActorNumber(int)Looks for the player in room with specific actor id.
FindPlayerByGuid(string)Finds player with the given Guid.
FindPlayerByName(string)Looks for the player in room with a specific name.
FindPlayerByNetworkID(int)Looks for the player in room with specific network id.
FindPlayerCloseToPosition(Vector3)Looks for the player which is closest to the specified location.
FindPlayersInBounds(Bounds)Finds list of players which are inside the specified cubic volume defined by bounds.
FindPlayersInCollider(Collider)Finds list of players which are inside the specified collider. Uses the volume defined by Bounds of the collider. Same as ML.SDK.MassiveLoopRoom.FindPlayersInBounds .
FindPlayersInsideVolume(Vector3, float)Finds list of players which are inside the specified spherical volume defined by center and radius.
GetAllPlayers()Returns an array of all players in current room.
GetChannelPolicy(byte)Gets the channel policy of the specified channel, if it exists.
GetLocalPlayer()Returns the local player. The local player means the player that is getting controlled by this running client.
TryCreateOrUpdateChannel(byte, MLAudioChannelPolicy)Create a channel with the given channel policy if it doesn't exist. Otherwise, updates the channel policy. Changes become active not immediately but when the server executes this operation (approximately RTT/2).
TryGetChannelPolicy(byte, MLAudioChannelPolicy)Gets the channel policy of the specified channel, if it exists.
TryRemoveChannel(byte)Remove a channel, if it exists.