Preparing search index...
        // Editor.Size is an integer (x, y) pair used to express a pixel dimension.
    // Its most common consumer is RenderTarget.resolution — set this Size to
    // control the render-target output dimensions when `useScreenResolution`
    // is false.
    const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
    const captureTarget = model.project.scene.captureTarget;

    captureTarget.useScreenResolution = false;
    captureTarget.resolution = new Editor.Size(1080, 1920);

    console.log(
    `captureTarget size: ${captureTarget.resolution.x} x ${captureTarget.resolution.y}`
    );
    Index

    Constructors

    Properties

    x y

    Methods

    Constructors

    • Constructs a Size with the given width and height values.

      Parameters

      • x: number
      • y: number

      Returns Editor.Size

    Properties

    x: number

    Horizontal component of the size.

    y: number

    Vertical component of the size.

    Methods

    • Checks whether this size equals the given size.

      Parameters

      Returns boolean

    • Returns true if both x and y are zero.

      Returns boolean

    • Converts this size to a vec2.

      Returns vec2