docs.unity3d.com
    Show / Hide Table of Contents

    Get Texture Dimensions

    Menu Path : Operator > Sampling > Get Texture Dimensions

    The Get Texture Dimensions Operator allows you to get the dimensions of a given texture.

    This Operator handles every supported texture type in the Visual Effect Graph. It infers the input type automatically when you attach a texture to the input property. You can also manually specify the input type in the Operator configuration.

    Operator properties

    Input Type Description
    Tex Configurable. The texture to get the dimensions from.
    Output Type Description
    width uint The width of the texture.
    height uint The height of the texture.
    depth uint The depth of the texture 3D (for Texture3D types only).
    count uint The layer count in the texture array (for Texture2DArray and TextureCubeArray only).

    Operator configuration

    To view the Operator's configuration, click the cog icon in the Operator's header. Use the drop-down to select the type for the Tex port. For the list of types this property supports, see Available types.

    Available types

    All types of textures are available for your Texture ports:

    • Texture2D
    • Texture3D
    • Texture2DArray
    • TextureCube
    • TextureCubeArray
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023