Lens Studio v2.0.0+
Options for stretching a mesh to fit a ScreenTransform’s bounding box. Used in MeshVisual’s
stretchMode property, as long as the SceneObject has a ScreenTransform attached. Also used in TextFill’s
textureStretch property to control texture stretching when drawing text.
See the Image guide for more information about stretch modes.
||Scale uniformly so that both width and height fit within the bounds.|
||Scale uniformly so that both width and height meet or exceed the bounds.|
||Scale non-uniformly to match the exact width and height of the bounds.|
||Scale uniformly to match the same height as the bounds.|
||Scale uniformly to match the same width as the bounds.|
// @input Component.Image image script.image.stretchMode = StretchMode.Stretch;
Still Looking for help?Visit Support