TurnOnEvent
Lens Studio v1.0.0+
Scripting Name: TurnOnEvent
Inherits from SceneEvent
Description
Triggered when the lens turns on.
Inherited Methods
bind(function evCallback)
: void
Binds a callback function to this event.
getTypeName()
: String
Returns the typename of the SceneEvent.
getTypeName()
: String
Returns the name of this object’s type.
isOfType(String type)
: Boolean
Returns true if the object matches or derives from the passed in type.
Inherited Properties
enabled
: Boolean
If true, the event is able to trigger. If false, the event will not trigger.
Examples
// Prints "turn on" when the lens starts
var event = script.createEvent("TurnOnEvent");
event.bind(function (eventData)
{
print("turn on");
});
Still Looking for help?
Visit Support