ManipulateType
EnumEnum values specifying each type of manipulation.
- Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.
Since Lens Scripting v272
Enum values specifying each type of manipulation. See ManipulateComponent.
Index
Example
// Disables the scale functionality on a manipulate component when a user taps
//@input Component.ManipulateComponent manip
function onTap(eventData)
{
script.manip.enableManipulateType(ManipulateType.Scale, false);
}
var tapEvent = script.createEvent("TapEvent");
tapEvent.bind(onTap);
Enumeration Members
Drag
Drag:
number
The object can be moved by touching and dragging.
Since
Lens Scripting Version 272
Scale
Scale:
number
The object can be scaled by pinching with two fingers.
Since
Lens Scripting Version 272
Swivel
Swivel:
number
The object can be rotated by swiveling with two fingers.
Since
Lens Scripting Version 272