docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetDimensions

    SetDimensions(int, int, int)

    Sets the dimensions of the output texture or tensor. The default value is -1, which means Sentis infers the dimensions from the input texture or tensor.

    If the width and height of the input don't match the width and height of the output, Sentis applies linear resampling.

    If you use SetDimensions in a blit to an existing texture, Sentis ignores width, height, and channels.

    The method returns a TextureTransform that you can use to chain other methods.

    Declaration
    public TextureTransform SetDimensions(int width = -1, int height = -1, int channels = -1)
    Parameters
    Type Name Description
    int width

    The width to use for the output.

    int height

    The height to use for the output.

    int channels

    The channel count to use for the output.

    Returns
    Type Description
    TextureTransform

    TextureTransform that you can use to chain other methods.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)