docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TextureImporterInternals

    Extension methods for the UnityEditor.TextureImporter.

    Inheritance
    object
    TextureImporterInternals
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.XR.ARSubsystems.InternalBridge
    Assembly: Unity.InternalAPIEditorBridge.005.dll
    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.

    In This Article
    Back to top
    Copyright © 2025 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)