visibleRemotely
Property
Whether the avatar is visible in the scene to other remote users.
Returns bool
Examples
public void ToggleRemoteVisibility()
{
// Change visibility on my avatar to everyone's client
SpatialBridge.actorService.localActor.avatar.visibleRemotely = !SpatialBridge.actorService.localActor.avatar.visibleRemotely;
}
public void ToggleLocalVisibility()
{
// Change visibility of my avatar only on my client
SpatialBridge.actorService.localActor.avatar.visibleLocally = !SpatialBridge.actorService.localActor.avatar.visibleLocally;
}
public void ToggleLocalVisibilityOtherAvatars()
{
// Change visibility of other avatars on my client
foreach (var actor in SpatialBridge.actorService.actors.Values)
{
if (actor != SpatialBridge.actorService.localActor)
{
actor.avatar.visibleLocally = !actor.avatar.visibleLocally;
}
}
}
public void ToggleRemoteVisibility()
{
// Change visibility on my avatar to everyone's client
SpatialBridge.actorService.localActor.avatar.visibleRemotely = !SpatialBridge.actorService.localActor.avatar.visibleRemotely;
}
public void ToggleLocalVisibility()
{
// Change visibility of my avatar only on my client
SpatialBridge.actorService.localActor.avatar.visibleLocally = !SpatialBridge.actorService.localActor.avatar.visibleLocally;
}
public void ToggleLocalVisibilityOtherAvatars()
{
// Change visibility of other avatars on my client
foreach (var actor in SpatialBridge.actorService.actors.Values)
{
if (actor != SpatialBridge.actorService.localActor)
{
actor.avatar.visibleLocally = !actor.avatar.visibleLocally;
}
}
}