ManipulateStartEvent
Lens Studio v1.0.0+
Scripting Name: ManipulateStartEvent
Inherits from SceneObjectEvent
Description
This event is triggered when manipulation on the object begins.
Inherited Methods
getSceneObject()
: SceneObject
Returns the SceneObject this Event is associated with.
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
// Creates events for Manipulate Start and Manipulate End events
var manipulating = true;
function manipStart(eventData)
{
manipulating = true;
}
var manipStartEvent = script.createEvent("ManipulateStartEvent");
manipStartEvent.bind(manipStart);
function manipEnd(eventData)
{
manipulating = false;
}
var manipEndEvent = script.createEvent("ManipulateEndEvent");
manipEndEvent.bind(manipEnd);
Still Looking for help?
Visit Support