docs.unity3d.com
    Show / Hide Table of Contents

    Class TextureImporterInternals

    Extension methods for the UnityEditor.TextureImporter.

    Inheritance
    Object
    TextureImporterInternals
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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
    Generated by DocFX
    on Monday, May 22, 2023