Preparing search index...
        const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
    const scene = model.project.scene;

    // Create a RenderMeshVisual and set stretch mode to Fit
    const obj = scene.createSceneObject('FittedMesh');
    const rmv = obj.addComponent('RenderMeshVisual');
    rmv.stretchMode = Editor.Components.StretchMode.Fit;
    console.log(`stretchMode: ${rmv.stretchMode}`);
    Index

    Enumeration Members

    Fill: number

    Scale to fill the area, maintaining aspect ratio and cropping if needed.

    FillAndCut: number

    Scale to fill and crop to exact dimensions.

    Fit: number

    Scale to fit within the area, maintaining aspect ratio with letterboxing.

    FitHeight: number

    Scale to match height, maintaining aspect ratio.

    FitWidth: number

    Scale to match width, maintaining aspect ratio.

    Stretch: number

    Scale to fill the area, ignoring aspect ratio.