docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Property outputDimensions

    outputDimensions

    The dimensions of the converted image. The output dimensions must be less than or equal to the inputRect's dimensions. If the output dimensions are less than the inputRect's dimensions, downsampling is performed using nearest neighbor.

    Declaration
    public Vector2Int outputDimensions { get; set; }
    Property Value
    Type Description
    Vector2Int

    The dimensions of the converted image.

    Examples

    For example, you could supply (inputRect.width / 2, inputRect.height / 2) to get a half resolution image. This can decrease the time it takes to perform a color conversion.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023