docs.unity3d.com
    Show / Hide Table of Contents

    Class TextureImporterInternals

    Extension methods for the UnityEditor.TextureImporter.

    Inheritance
    Object
    TextureImporterInternals
    Namespace: UnityEditor.XR.ARSubsystems.InternalBridge
    Syntax
    public static class TextureImporterInternals

    Methods

    GetSourceTextureDimensions(TextureImporter)

    Gets the original image dimensions. The texture import settings can affect the resulting texture size, for instance: rounding to a power of 2.

    Declaration
    public static Vector2Int GetSourceTextureDimensions(TextureImporter textureImporter)
    Parameters
    Type Name Description
    TextureImporter textureImporter

    The TextureImporter on which to operate.

    Returns
    Type Description
    Vector2Int

    The original dimensions of the imported image.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if textureImporter is null.

    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