Event fired when the "Launch connected lens" button was pressed. Wait for this event to be triggered before creating a session, as having this event gaurantees the user has accepted the necessary disclosures to use a connected lens experience.
script.createEvent("ConnectedLensEnteredEvent").bind(function () { print("Connected lens entered");}); Copy
script.createEvent("ConnectedLensEnteredEvent").bind(function () { print("Connected lens entered");});
If true, the event is able to trigger. If false, the event will not trigger.
Binds a callback function to this event.
Returns the typename of the SceneEvent.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
other
Event fired when the "Launch connected lens" button was pressed. Wait for this event to be triggered before creating a session, as having this event gaurantees the user has accepted the necessary disclosures to use a connected lens experience.
Example