connected
  • 30 Oct 2020
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

connected

  • Dark
    Light
  • PDF

Article summary

Description

Type: Boolean

Returns whether or not an avatar is connected to the runtime.


Examples

// check connection to avatar
if (avatar.connected)
    debug.log("Avatar connected.");
else
    debug.log("Avatar disconnected.");

Remarks

Use this property when your scripts need to check whether or not an avatar is currently connected to the runtime's avatar object.


What's Next