connected

Prev Next

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.");
JavaScript

Remarks

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