Lens Studio v1.5.0+
Inherits from Visual
Applies a face stretch effect. Face stretch features can be added to a FaceStretchVisual through the Inspector panel in Lens Studio. See the Face Stretch Guide for more information.
getFeatureWeight(String feature) :
Returns the weight of the face stretch feature named
setFeatureWeight(String feature, Number intensity) :
Sets the weight of the face stretch feature named
intensity. The intensity must be greater than -0.5 and less than 2.
The index of the face the stretch will be applied to.
Returns the order of this Visual in the render queue.
setRenderOrder(Number value) :
Sets the order of this Visual in the render queue.
Destroys the component.
Returns the SceneObject the component is attached to.
Returns the Transform this component is attached to.
Returns the name of this object’s type.
If disabled, the Component will stop enacting its behavior.
// Changes the intensity of the first face stretch feature //@input Component.FaceStretchVisual faceStretch var feature = "Feature0"; var intensity = 2.0; script.faceStretch.setFeatureWeight(feature, intensity);
Still Looking for help?Visit Support